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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1290
RA = 332.474, Dec = -50.4702
tmin = 573696001, tmax = 573955201
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='211012', job_status='RUN', time_executed='2021-09-28 06:28:41.844733', time_epoch_executed='1632835721.84' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1290'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211012

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211012/ft1_4FGL_J2209.8-5028_daily_bin1290.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211012/ft2_4FGL_J2209.8-5028_daily_bin1290.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211012/ft1_4FGL_J2209.8-5028_daily_bin1290.fits outfile=/scratch/kocevski/211012/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1290.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=573696001.0 tmax=573955201.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.51
user 4.28
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211012/ft1_filtered_4FGL_J2209.8-5028_daily_bin1290.fits" evtable="EVENTS" scfile=/scratch/kocevski/211012/ft2_4FGL_J2209.8-5028_daily_bin1290.fits sctable="SC_DATA" outfile=/scratch/kocevski/211012/ltcube_573696001_573955201_4FGL_J2209.8-5028_daily_bin1290.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/211012/ft2_4FGL_J2209.8-5028_daily_bin1290.fits
.....................!
real 11.58
user 11.25
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211012/ft1_filtered_4FGL_J2209.8-5028_daily_bin1290.fits evtable="EVENTS" scfile=/scratch/kocevski/211012/ft2_4FGL_J2209.8-5028_daily_bin1290.fits sctable="SC_DATA" expcube=/scratch/kocevski/211012/ltcube_573696001_573955201_4FGL_J2209.8-5028_daily_bin1290.fits outfile=/scratch/kocevski/211012/expmap_573696001_573955201_4FGL_J2209.8-5028_daily_bin1290.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/211012/ltcube_573696001_573955201_4FGL_J2209.8-5028_daily_bin1290.fits
.....................!
real 190.13
user 185.27
sys 4.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/211012/ft1_filtered_4FGL_J2209.8-5028_daily_bin1290.fits scfile=/scratch/kocevski/211012/ft2_4FGL_J2209.8-5028_daily_bin1290.fits outfile=/scratch/kocevski/211012/cmap_573696001_573955201_4FGL_J2209.8-5028_daily_bin1290.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.54
user 0.39
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/211012/ft1_filtered_4FGL_J2209.8-5028_daily_bin1290.fits evtable="EVENTS" scfile=/scratch/kocevski/211012/ft2_4FGL_J2209.8-5028_daily_bin1290.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211012/Model_4FGL_J2209.8-5028_daily_bin1290.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/211012/ft1_filtered_4FGL_J2209.8-5028_daily_bin1290.fits.....................!
real 41.95
user 40.65
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    102.34       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    45.207       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.3996       1.0000         .10000E-03   10000.    
     7 'norm      '    5.4929       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16780E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.8998       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.3871       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0525       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .97072E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.616       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.937       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.092       1.0000         .10000E-03   10000.    
    23 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .67485       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2029       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=   5200.824     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2914 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    51.299       -.11089E-04** at limit **
   2  Prefactor     102.34        65.540       -.62336E-06    .23894E-04
   3  Prefactor     .10000E-03    18.195       -.11661E-05** at limit **
   4  Prefactor     45.211        36.659        .14737E-05   -.11812E-05
   5  Prefactor     .10000E-03    10.765       -.24844E-05** at limit **
   6  Prefactor     7.4004        5.3378       -.30158E-06    .18027E-05
   7  norm          5.4925        4.7231       -.19263E-06   -.85754E-04
   8  Prefactor     .10018E-03    13.154        .12877E-05** at limit **
   9  Prefactor     .10000E-03    10.849        .25554E-05** at limit **
  10  Prefactor     .10000E-03    3.4273        .94712E-08** at limit **
  11  Prefactor     .10000E-03    1.9462        .34774E-08** at limit **
  12  Prefactor     .10000E-03    51.955       -.10774E-04** at limit **
  13  norm          6.8991        6.5179        .10401E-06    .42944E-04
  14  Prefactor     8.3862        6.2244       -.10471E-05   -.99419E-04
  15  Prefactor     .10000E-03    31.889        .46862E-05** at limit **
  16  Prefactor     2.0478        2.3008        .86565E-06   -.27366E-02
  17  Prefactor     .10000E-03    118.06       -.22460E-04** at limit **
  18  Prefactor     16.589        13.308       -.27825E-06    .21578E-03
  19  Prefactor     .10000E-03    71.723        .32212E-04** at limit **
  20  Prefactor     19.938        12.965       -.15331E-06   -.16263E-04
  21  Prefactor     .10000E-03    16.456        .43313E-06** at limit **
  22  Prefactor     16.088        19.270        .26505E-06    .21851E-04
  23  norm          .10000E-03    8.3624       -.11485E-07** at limit **
  24  Normalizat    .67481        .21966        .11120E-05    .69175E-04
  25  Prefactor     1.2029        .17166       -.32141E-06    .14823E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 102.344
  Prefactor  = 0.0001
  Prefactor  = 45.2107
  Prefactor  = 0.0001
  Prefactor  = 7.40043
  norm       = 5.49249
  Prefactor  = 0.000100181
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.89913
  Prefactor  = 8.38616
  Prefactor  = 0.0001
  Prefactor  = 2.04781
  Prefactor  = 0.0001
  Prefactor  = 16.5892
  Prefactor  = 0.000100004
  Prefactor  = 19.9376
  Prefactor  = 0.0001
  Prefactor  = 16.0885
  norm       = 0.0001
  Normalizat = 0.674809
  Prefactor  = 1.20292
 **********
 **   18 **HESSE 
 **********

 FCN=   5200.824     FROM HESSE     STATUS=OK           423 CALLS     3337 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     102.34        65.556        .39744E-04   -1.3681    
   3  Prefactor     .10000E-03    18.922        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     45.211        36.570        .59631E-04   -1.4362    
   5  Prefactor     .10000E-03    10.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.4004        5.3354        .13469E-03   -1.5164    
   7  norm          5.4925        4.7150        .13767E-03   -1.5239    
   8  Prefactor     .10018E-03    80.569        .50198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.4387        .13037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.9683        .98189E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    52.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.8991        6.5167        .15274E-03   -1.5183    
  14  Prefactor     8.3862        6.2553        .13842E-03   -1.5129    
  15  Prefactor     .10000E-03    31.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.0478        5.5050        .13237E-02   -1.5422    
  17  Prefactor     .10000E-03    120.63        .36286E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.589        13.268        .98254E-04   -1.4893    
  19  Prefactor     .10000E-03    72.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.938        12.983        .89701E-04   -1.4815    
  21  Prefactor     .10000E-03    16.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     16.088        19.302        .99842E-04   -1.4906    
  23  norm          .10000E-03    8.5499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .67481        .24920        .32562E-03   -1.0490    
  25  Prefactor     1.2029        .19533        .20447E-03   -.86241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33741e-08
Minuit parameter uncertainties:
  1  0.000207459
  2  65.6029
  3  4.52782e-05
  4  36.5884
  5  2.78677e-05
  6  5.33579
  7  4.71535
  8  0.00764057
  9  3.26591e-05
  10  1.55685e-06
  11  5.22664e-07
  12  0.00028096
  13  6.51738
  14  6.25578
  15  0.000128088
  16  5.5064
  17  4.03567e-05
  18  13.27
  19  0.00103814
  20  12.9849
  21  8.34211e-06
  22  19.3097
  23  2.88403e-06
  24  0.249619
  25  0.195444
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  2.810e-04  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.203e+00  1.954e-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.748e-01  2.496e-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: 6.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/211012/likelihoodResults_573696001_573955201_4FGL_J2209.8-5028_daily_bin1290.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) = 5200.82377014
delta logL = -9.142604722e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5200.82367906
delta logL = -3.44397449226e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9003       1.0000          .0000       10.000    
     3 'Normalizat'    .67481       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2029       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=   5200.824     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      239 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.488        .90712E-02** at limit **
   2  Index         2.8834        5.4308        .50000        .40664E-05
   3  Normalizat    .67481        .40906E-02    .73559E-01    .24310E-04
   4  Prefactor     1.2029        .33561E-02    .34562E-01   -.54510E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.88336
  Normalizat = 0.674809
  Prefactor  = 1.20292
 **********
 **   18 **HESSE 
 **********

 FCN=   5200.824     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      272 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    264.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8834        7.6781        .50000       -.43712    
   3  Normalizat    .67481        .13519E-01    .32561E-03   -1.0490    
   4  Prefactor     1.2029        .11116E-01    .20447E-03   -.86241    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.98992e-07
Minuit parameter uncertainties:
  1  0.000166423
  2  499.299
  3  0.0135194
  4  0.0111158
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211012': 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): 102
logL (Free Index) = 5200.82367903
delta logL = -3.21778315993e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.664e-04  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.883e+00  4.993e+02  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.203e+00  1.112e-02  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.748e-01  1.352e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/211012/cmap_HighResolution_573696001_573955201_4FGL_J2209.8-5028_daily_bin1290.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.81e-03', job_status='DONE', photon_flux_upper_limit='6.24e-08', time_completed='2021-09-28 06:39:33.659614', job_id='211012', GAL2='1.20', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1632836373.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='-3.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1290' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:39:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 211012: <4FGL_J2209.8-5028_daily_bin1290> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1290> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 06:26:03 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:26:04 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:26:04 2021
Terminated at Tue Sep 28 06:39:34 2021
Results reported at Tue Sep 28 06:39:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1290 332.474 -50.4702 573696001 573955201 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 :                                   644.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            811 sec.

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

