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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin709
RA = 332.474, Dec = -50.4702
tmin = 423100801, tmax = 423360001
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='208932', job_status='RUN', time_executed='2021-09-28 06:21:46.226833', time_epoch_executed='1632835306.23' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/208932

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/208932/ft1_4FGL_J2209.8-5028_daily_bin709.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/208932/ft2_4FGL_J2209.8-5028_daily_bin709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/208932/ft1_4FGL_J2209.8-5028_daily_bin709.fits outfile=/scratch/kocevski/208932/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin709.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=423100801.0 tmax=423360001.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 5.65
user 4.72
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/208932/ft1_filtered_4FGL_J2209.8-5028_daily_bin709.fits" evtable="EVENTS" scfile=/scratch/kocevski/208932/ft2_4FGL_J2209.8-5028_daily_bin709.fits sctable="SC_DATA" outfile=/scratch/kocevski/208932/ltcube_423100801_423360001_4FGL_J2209.8-5028_daily_bin709.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/208932/ft2_4FGL_J2209.8-5028_daily_bin709.fits
.....................!
real 11.65
user 11.32
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/208932/ft1_filtered_4FGL_J2209.8-5028_daily_bin709.fits evtable="EVENTS" scfile=/scratch/kocevski/208932/ft2_4FGL_J2209.8-5028_daily_bin709.fits sctable="SC_DATA" expcube=/scratch/kocevski/208932/ltcube_423100801_423360001_4FGL_J2209.8-5028_daily_bin709.fits outfile=/scratch/kocevski/208932/expmap_423100801_423360001_4FGL_J2209.8-5028_daily_bin709.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/208932/ltcube_423100801_423360001_4FGL_J2209.8-5028_daily_bin709.fits
.....................!
real 189.66
user 184.53
sys 4.73

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/208932/ft1_filtered_4FGL_J2209.8-5028_daily_bin709.fits scfile=/scratch/kocevski/208932/ft2_4FGL_J2209.8-5028_daily_bin709.fits outfile=/scratch/kocevski/208932/cmap_423100801_423360001_4FGL_J2209.8-5028_daily_bin709.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/208932/ft1_filtered_4FGL_J2209.8-5028_daily_bin709.fits scfile=/scratch/kocevski/208932/ft2_4FGL_J2209.8-5028_daily_bin709.fits outfile=/scratch/kocevski/208932/cmap_HighResolution_423100801_423360001_4FGL_J2209.8-5028_daily_bin709.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/208932/ft1_filtered_4FGL_J2209.8-5028_daily_bin709.fits evtable="EVENTS" scfile=/scratch/kocevski/208932/ft2_4FGL_J2209.8-5028_daily_bin709.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/208932/Model_4FGL_J2209.8-5028_daily_bin709.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/208932/ft1_filtered_4FGL_J2209.8-5028_daily_bin709.fits....................!
real 44.00
user 42.57
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    3.8135       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.1213       1.0000         .10000E-03   10000.    
     7 'norm      '    7.8574       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.9970       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5190       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.1273       1.0000         .10000E-03   10000.    
    12 'Prefactor '    52.129       1.0000         .10000E-03   10000.    
    13 'norm      '    .87967E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8249       1.0000         .10000E-03   10000.    
    15 'Prefactor '    60.884       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.3130       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .87181E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16324E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    52.694       1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.778       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .68578       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2412       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=   5572.510     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2959 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.260       -.11235E-06** at limit **
   2  Prefactor     .10000E-03    97.137       -.50209E-06** at limit **
   3  Prefactor     3.8123        9.7582        .78252E-06    .62413E-04
   4  Prefactor     .10000E-03    31.229        .25300E-07** at limit **
   5  Prefactor     .10000E-03    21.824       -.34312E-06** at limit **
   6  Prefactor     7.1201        5.5986        .27440E-06    .48963E-04
   7  norm          7.8572        5.2191        .43933E-07    .31429E-04
   8  Prefactor     .10000E-03    4.5458        .25882E-07** at limit **
   9  Prefactor     10.071        58.252       -.23894E-05    .46908E-05
  10  Prefactor     5.5163        9.5074        .12702E-05    .13717E-03
  11  Prefactor     8.1281        5.0127        .10004E-06   -.49861E-04
  12  Prefactor     52.126        62.181       -.18565E-06   -.84903E-05
  13  norm          .10005E-03    8.4811       -.25276E-05** at limit **
  14  Prefactor     1.8266        5.4192        .26526E-05    .35441E-03
  15  Prefactor     60.907        59.984       -.10845E-05   -.10409E-04
  16  Prefactor     .10000E-03    2.5784        .88205E-07** at limit **
  17  Prefactor     5.3441        35.839       -.21780E-05   -.18103E-03
  18  Prefactor     .10001E-03    10.983        .25081E-05** at limit **
  19  Prefactor     .10000E-03    48.367        .98055E-07** at limit **
  20  Prefactor     .10000E-03    7.0693       -.27384E-06** at limit **
  21  Prefactor     52.699        38.535        .97729E-07   -.42961E-04
  22  Prefactor     20.778        17.257        .20070E-06   -.35460E-04
  23  norm          .10000E-03    3.0950       -.22724E-08** at limit **
  24  Normalizat    .68586        .22082       -.31146E-05   -.15607E-03
  25  Prefactor     1.2412        .16539        .96604E-06   -.18999E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.81227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.12015
  norm       = 7.85718
  Prefactor  = 0.0001
  Prefactor  = 10.0707
  Prefactor  = 5.51633
  Prefactor  = 8.12814
  Prefactor  = 52.1264
  norm       = 0.000100055
  Prefactor  = 1.82657
  Prefactor  = 60.9075
  Prefactor  = 0.0001
  Prefactor  = 5.34412
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.6985
  Prefactor  = 20.7775
  norm       = 0.0001
  Normalizat = 0.685855
  Prefactor  = 1.24119
 **********
 **   18 **HESSE 
 **********

 FCN=   5572.510     FROM HESSE     STATUS=OK           427 CALLS     3386 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    97.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.8123        9.7589        .20669E-03   -1.5317    
   4  Prefactor     .10000E-03    31.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.1201        5.5907        .14774E-03   -1.5174    
   7  norm          7.8572        5.2168        .13454E-03   -1.5147    
   8  Prefactor     .10000E-03    4.5489        .15545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.071        56.733        .12673E-03   -1.5073    
  10  Prefactor     5.5163        9.4741        .17102E-03   -1.5238    
  11  Prefactor     8.1281        5.0023        .12335E-03   -1.5138    
  12  Prefactor     52.126        62.148        .27774E-03   -1.4263    
  13  norm          .10005E-03    20.597        .33924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.8266        5.4814        .27162E-03   -1.5438    
  15  Prefactor     60.907        59.716        .51422E-04   -1.4146    
  16  Prefactor     .10000E-03    2.5898        .11701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.3441        31.987        .17436E-03   -1.5246    
  18  Prefactor     .10001E-03    32.043        .41100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    48.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    26.362        .37782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     52.699        38.531        .55252E-04   -1.4255    
  22  Prefactor     20.778        17.265        .87869E-04   -1.4796    
  23  norm          .10000E-03    3.0974        .12826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .68586        .24222        .32138E-03   -1.0445    
  25  Prefactor     1.2412        .18413        .20152E-03   -.85073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67122e-09
Minuit parameter uncertainties:
  1  5.50172e-06
  2  6.59291e-06
  3  9.76301
  4  1.64786e-05
  5  1.63676e-05
  6  5.59113
  7  5.2171
  8  2.17986e-06
  9  47.875
  10  9.4767
  11  5.00255
  12  62.2255
  13  0.00212602
  14  5.48293
  15  59.7748
  16  3.71646e-06
  17  26.1697
  18  0.00128793
  19  1.87345e-05
  20  0.000160899
  21  38.5492
  22  17.2696
  23  9.38978e-08
  24  0.242602
  25  0.18423
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  5.213e+01  6.223e+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:  1.241e+00  1.842e-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.859e-01  2.426e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.82
Ra Dec: 332.474 -50.470
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 1.83e-08 +/- 2.19e-08
Energy Flux (Fixed Index): 6.24e-06 +/- 7.45e-06

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

Saving results to:
/scratch/kocevski/208932/likelihoodResults_423100801_423360001_4FGL_J2209.8-5028_daily_bin709.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) = 5570.55249573
delta logL = 1.95733918228

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5570.54699706
delta logL = 1.96283785043

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.286       1.0000         .10000E-03   10000.    
     2 'Index     '    1.0272       1.0000          .0000       10.000    
     3 'Normalizat'    .69904       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2352       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=   5570.547     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      209 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.232        82.213       -.25793E-04   -.34856E-04
   2  Index         1.0268        .60621       -.77889E-04    .12291E-04
   3  Normalizat    .69910        .19335        .32245E-06    .87096E-04
   4  Prefactor     1.2352        .15939        .60619E-07    .10894E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.2323
  Index      = 1.02681
  Normalizat = 0.699096
  Prefactor  = 1.2352
 **********
 **   18 **HESSE 
 **********

 FCN=   5570.547     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.232        78.874        .26502E-03   -1.4193    
   2  Index         1.0268        .58264        .99023E-02   -.91841    
   3  Normalizat    .69910        .21650        .31846E-03   -1.0393    
   4  Prefactor     1.2352        .17887        .20186E-03   -.85255    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24854e-09
Minuit parameter uncertainties:
  1  79.0188
  2  0.586277
  3  0.216768
  4  0.178958
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/208932': 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) = 5570.54699678
delta logL = 1.96283812356

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  5.723e+01  7.902e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  1.027e+00  5.863e-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:  1.235e+00  1.790e-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.991e-01  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.74
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 1.03 +/- 0.59
Photon Flux (Free Index): 5.23e-09 +/- 5.93e-09
Energy Flux (Free Index): 7.08e-05 +/- 1.01e-04

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/208932/cmap_HighResolution_423100801_423360001_4FGL_J2209.8-5028_daily_bin709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.72e-03', comment='SUCCESS', photon_flux='1.83e-08', energy_flux2='7.08e-05', photon_flux_error='2.19e-08', dlogl='1.96e+00', energy_flux='6.24e-06', photon_flux2='5.23e-09', job_status='DONE', time_completed='2021-09-28 06:32:59.553401', photon_index_error2='0.59', photon_index2='1.03', ts='1.82', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='8.71e-08', energy_flux_error2='1.01e-04', EG='0.69', time_epoch_completed='1632835979.55', return_code='0', job_id='208932', GAL2='1.24', EG2='0.70', return_code2='0', energy_flux_error='7.45e-06', photon_flux_error2='5.93e-09', ts2='5.74', photon_index='2.37' WHERE bin_id='709' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:32:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 208932: <4FGL_J2209.8-5028_daily_bin709> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin709> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 06:20:19 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:20:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 06:20:20 2021
Terminated at Tue Sep 28 06:33:00 2021
Results reported at Tue Sep 28 06:33:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin709 332.474 -50.4702 423100801 423360001 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 :                                   667.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            761 sec.

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

