/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 = 7398
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2209.8-5028_daily_bin324
RA = 332.474, Dec = -50.4702
tmin = 323308801, tmax = 323568001
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='206170', job_status='RUN', time_executed='2021-09-28 06:11:26.442582', time_epoch_executed='1632834686.44' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/206170

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/206170/ft1_4FGL_J2209.8-5028_daily_bin324.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/206170/ft2_4FGL_J2209.8-5028_daily_bin324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/206170/ft1_4FGL_J2209.8-5028_daily_bin324.fits outfile=/scratch/kocevski/206170/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin324.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=323308801.0 tmax=323568001.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.32
user 3.10
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/206170/ft2_4FGL_J2209.8-5028_daily_bin324.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/206170/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin324.fits evtable="EVENTS" outfile="/scratch/kocevski/206170/ft1_filtered_4FGL_J2209.8-5028_daily_bin324.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/206170/ft1_filtered_4FGL_J2209.8-5028_daily_bin324.fits" evtable="EVENTS" scfile=/scratch/kocevski/206170/ft2_4FGL_J2209.8-5028_daily_bin324.fits sctable="SC_DATA" outfile=/scratch/kocevski/206170/ltcube_323308801_323568001_4FGL_J2209.8-5028_daily_bin324.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/206170/ft2_4FGL_J2209.8-5028_daily_bin324.fits
.....................!
real 11.75
user 11.40
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/206170/ft1_filtered_4FGL_J2209.8-5028_daily_bin324.fits evtable="EVENTS" scfile=/scratch/kocevski/206170/ft2_4FGL_J2209.8-5028_daily_bin324.fits sctable="SC_DATA" expcube=/scratch/kocevski/206170/ltcube_323308801_323568001_4FGL_J2209.8-5028_daily_bin324.fits outfile=/scratch/kocevski/206170/expmap_323308801_323568001_4FGL_J2209.8-5028_daily_bin324.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/206170/ltcube_323308801_323568001_4FGL_J2209.8-5028_daily_bin324.fits
.....................!
real 190.88
user 185.99
sys 4.57

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/206170/ft1_filtered_4FGL_J2209.8-5028_daily_bin324.fits scfile=/scratch/kocevski/206170/ft2_4FGL_J2209.8-5028_daily_bin324.fits outfile=/scratch/kocevski/206170/cmap_323308801_323568001_4FGL_J2209.8-5028_daily_bin324.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/206170/ft1_filtered_4FGL_J2209.8-5028_daily_bin324.fits scfile=/scratch/kocevski/206170/ft2_4FGL_J2209.8-5028_daily_bin324.fits outfile=/scratch/kocevski/206170/cmap_HighResolution_323308801_323568001_4FGL_J2209.8-5028_daily_bin324.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.581       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.5885       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.561       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.721       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0268       1.0000         .10000E-03   10000.    
     7 'norm      '    4.3135       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2815       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .57230       1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.533       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8654       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.4067       1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.109       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0048       1.0000         .10000E-03   10000.    
    19 'Prefactor '    70.572       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.760       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    28.403       1.0000         .10000E-03   10000.    
    23 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0579       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95229       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=   8026.036     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2899 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.582        23.596        .95290E-07    .11123E-04
   2  Prefactor     .10000E-03    13.980       -.10388E-06** at limit **
   3  Prefactor     8.5888        6.3274       -.10810E-06   -.44351E-04
   4  Prefactor     10.559        19.215        .32857E-06   -.27570E-04
   5  Prefactor     19.722        20.082       -.30952E-06    .25094E-04
   6  Prefactor     2.0271        3.4378        .38819E-05   -.14976E-03
   7  norm          4.3136        3.2547        .87308E-07   -.20575E-03
   8  Prefactor     3.2817        8.7344        .29723E-06   -.18467E-04
   9  Prefactor     .10000E-03    28.358       -.31037E-06** at limit **
  10  Prefactor     .10000E-03    2.5355       -.97436E-07** at limit **
  11  Prefactor     .57184        2.2823        .26317E-06   -.12249E-03
  12  Prefactor     25.531        86.074       -.70361E-06   -.18004E-06
  13  norm          .10000E-03    2.7735       -.69943E-07** at limit **
  14  Prefactor     2.8659        3.1891        .17530E-05   -.99261E-04
  15  Prefactor     .10000E-03    16.321        .46893E-06** at limit **
  16  Prefactor     4.4088        4.7949       -.68063E-06    .24017E-03
  17  Prefactor     24.064        29.301        .67406E-05   -.21086E-03
  18  Prefactor     2.0208        16.016       -.85748E-05   -.30666E-03
  19  Prefactor     70.553        64.679        .23628E-05   -.77357E-04
  20  Prefactor     10.761        6.4858       -.64932E-07   -.28491E-04
  21  Prefactor     .10000E-03    14.098       -.29581E-06** at limit **
  22  Prefactor     28.405        16.021        .33031E-08    .60126E-04
  23  norm          .10000E-03    2.4673        .80771E-08** at limit **
  24  Normalizat    1.0577        .17493        .86082E-06    .27820E-03
  25  Prefactor     .95245        .13337       -.18578E-05    .13364E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.5819
  Prefactor  = 0.0001
  Prefactor  = 8.58877
  Prefactor  = 10.5593
  Prefactor  = 19.7224
  Prefactor  = 2.02713
  norm       = 4.31362
  Prefactor  = 3.28169
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.571844
  Prefactor  = 25.5311
  norm       = 0.0001
  Prefactor  = 2.86594
  Prefactor  = 0.0001
  Prefactor  = 4.40882
  Prefactor  = 24.0643
  Prefactor  = 2.02076
  Prefactor  = 70.5529
  Prefactor  = 10.7606
  Prefactor  = 0.0001
  Prefactor  = 28.4049
  norm       = 0.0001
  Normalizat = 1.05768
  Prefactor  = 0.952451
 **********
 **   18 **HESSE 
 **********

 FCN=   8026.036     FROM HESSE     STATUS=OK           435 CALLS     3334 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.582        23.597        .92915E-04   -1.4846    
   2  Prefactor     .10000E-03    13.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.5888        6.3249        .13678E-03   -1.5122    
   4  Prefactor     10.559        19.185        .12329E-03   -1.5058    
   5  Prefactor     19.722        20.092        .90192E-04   -1.4819    
   6  Prefactor     2.0271        3.4487        .10340E-02   -1.5423    
   7  norm          4.3136        3.2475        .13354E-03   -1.5293    
   8  Prefactor     3.2817        8.7156        .22353E-03   -1.5346    
   9  Prefactor     .10000E-03    28.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.5412        .13908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .57184        2.2421        .25735E-03   -1.5557    
  12  Prefactor     25.531        86.022        .79277E-04   -1.4697    
  13  norm          .10000E-03    2.7863        .14570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.8659        3.2081        .80149E-03   -1.5369    
  15  Prefactor     .10000E-03    16.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.4088        4.7882        .19111E-03   -1.5288    
  17  Prefactor     24.064        29.484        .81582E-04   -1.4726    
  18  Prefactor     2.0208        16.309        .29245E-03   -1.5424    
  19  Prefactor     70.553        64.654        .23893E-03   -1.4026    
  20  Prefactor     10.761        6.4945        .12214E-03   -1.5052    
  21  Prefactor     .10000E-03    14.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     28.405        16.075        .75174E-04   -1.4642    
  23  norm          .10000E-03    2.4695        .13743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0577        .21108        .26458E-03   -.91122    
  25  Prefactor     .95245        .15843        .22311E-03   -.94332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.98167e-10
Minuit parameter uncertainties:
  1  23.6091
  2  4.74314e-05
  3  6.32534
  4  19.196
  5  20.0986
  6  3.44905
  7  3.24767
  8  8.71897
  9  0.000157878
  10  1.16114e-05
  11  2.24246
  12  86.4446
  13  3.63417e-06
  14  3.20833
  15  0.000151265
  16  4.78861
  17  29.5019
  18  11.4855
  19  64.7183
  20  6.49496
  21  6.45845e-06
  22  16.0773
  23  3.68424e-07
  24  0.211246
  25  0.158506
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  2.553e+01  8.644e+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:  9.525e-01  1.585e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  1.058e+00  2.112e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/206170/likelihoodResults_323308801_323568001_4FGL_J2209.8-5028_daily_bin324.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) = 8025.50436326
delta logL = 0.531817918945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8025.50276448
delta logL = 0.533416704022

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0294       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9664       1.0000          .0000       10.000    
     3 'Normalizat'    1.0116       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97469       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8025.503     FROM MIGRAD    STATUS=FAILED        94 CALLS      437 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0295        196.18        .85986E-03   -.68119E-03
   2  Index         3.9678        6.9688        .61196E-02    .37213E-04
   3  Normalizat    1.0116        .14558        .26967E-03   -.49745E-05
   4  Prefactor     .97475        .11666        .22084E-03   -.66409E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8025.503     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      527 TOTAL
                     EDM=   .87E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0295        196.18        .21690E-03   -.68119E-03
   2  Index         3.9678        6.9688        .10170E-02    .37213E-04
   3  Normalizat    1.0116        .14558        .14569E-03   -.49745E-05
   4  Prefactor     .97475        .11666        .94703E-04   -.66409E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8025.503     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      558 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0309        31.734        .34394E-04   -.29947E-03
   2  Index         3.9676        2.3563        .24478E-03   -.67437E-04
   3  Normalizat    1.0116        .19778        .10787E-04    .43211E-04
   4  Prefactor     .97475        .15682        .88334E-05    .59717E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.03088
  Index      = 3.96761
  Normalizat = 1.01158
  Prefactor  = 0.974748
 **********
 **   18 **HESSE 
 **********

 FCN=   8025.503     FROM HESSE     STATUS=OK            23 CALLS      581 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0309        24.163        .13758E-05   -1.5306    
   2  Index         3.9676        2.0767        .97913E-05   -.20797    
   3  Normalizat    1.0116        .19765        .21574E-05   -.92643    
   4  Prefactor     .97475        .15664        .17667E-05   -.93576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.40852e-11
Minuit parameter uncertainties:
  1  19.7496
  2  2.14469
  3  0.197795
  4  0.156709
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/206170': 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) = 8025.50275888
delta logL = 0.533422307161

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  4.031e+00  1.975e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  3.968e+00  2.145e+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.747e-01  1.567e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  1.012e+00  1.978e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.24
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 3.97 +/- 2.14
Photon Flux (Free Index): 4.19e-08 +/- 4.29e-08
Energy Flux (Free Index): 6.31e-06 +/- 6.72e-06

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/206170/cmap_HighResolution_323308801_323568001_4FGL_J2209.8-5028_daily_bin324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.95e-03', comment='SUCCESS', energy_flux2='6.31e-06', dlogl='5.33e-01', photon_flux2='4.19e-08', job_status='DONE', time_completed='2021-09-28 06:25:49.622126', photon_index_error2='2.14', photon_index2='3.97', ts='0.10', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='7.71e-08', energy_flux_error2='6.72e-06', EG='1.06', time_epoch_completed='1632835549.62', return_code='0', job_id='206170', GAL2='0.97', EG2='1.01', return_code2='0', photon_flux_error2='4.29e-08', ts2='1.24', photon_index='2.37' WHERE bin_id='324' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:25:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 206170: <4FGL_J2209.8-5028_daily_bin324> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin324> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 06:10:58 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:10:59 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:10:59 2021
Terminated at Tue Sep 28 06:25:50 2021
Results reported at Tue Sep 28 06:25:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin324 332.474 -50.4702 323308801 323568001 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 :                                   856.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            892 sec.

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

