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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin805
RA = 332.474, Dec = -50.4702
tmin = 447984001, tmax = 448243201
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='209077', job_status='RUN', time_executed='2021-09-28 06:23:23.381312', time_epoch_executed='1632835403.38' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='805'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209077

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209077/ft1_4FGL_J2209.8-5028_daily_bin805.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209077/ft2_4FGL_J2209.8-5028_daily_bin805.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209077/ft1_4FGL_J2209.8-5028_daily_bin805.fits outfile=/scratch/kocevski/209077/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin805.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=447984001.0 tmax=448243201.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.06
user 3.79
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/209077/ft2_4FGL_J2209.8-5028_daily_bin805.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/209077/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin805.fits evtable="EVENTS" outfile="/scratch/kocevski/209077/ft1_filtered_4FGL_J2209.8-5028_daily_bin805.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/209077/ft1_filtered_4FGL_J2209.8-5028_daily_bin805.fits" evtable="EVENTS" scfile=/scratch/kocevski/209077/ft2_4FGL_J2209.8-5028_daily_bin805.fits sctable="SC_DATA" outfile=/scratch/kocevski/209077/ltcube_447984001_448243201_4FGL_J2209.8-5028_daily_bin805.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/209077/ft2_4FGL_J2209.8-5028_daily_bin805.fits
.....................!
real 12.63
user 12.23
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209077/ft1_filtered_4FGL_J2209.8-5028_daily_bin805.fits evtable="EVENTS" scfile=/scratch/kocevski/209077/ft2_4FGL_J2209.8-5028_daily_bin805.fits sctable="SC_DATA" expcube=/scratch/kocevski/209077/ltcube_447984001_448243201_4FGL_J2209.8-5028_daily_bin805.fits outfile=/scratch/kocevski/209077/expmap_447984001_448243201_4FGL_J2209.8-5028_daily_bin805.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/209077/ltcube_447984001_448243201_4FGL_J2209.8-5028_daily_bin805.fits
.....................!
real 190.71
user 185.71
sys 4.59

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/209077/ft1_filtered_4FGL_J2209.8-5028_daily_bin805.fits scfile=/scratch/kocevski/209077/ft2_4FGL_J2209.8-5028_daily_bin805.fits outfile=/scratch/kocevski/209077/cmap_447984001_448243201_4FGL_J2209.8-5028_daily_bin805.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/209077/ft1_filtered_4FGL_J2209.8-5028_daily_bin805.fits scfile=/scratch/kocevski/209077/ft2_4FGL_J2209.8-5028_daily_bin805.fits outfile=/scratch/kocevski/209077/cmap_HighResolution_447984001_448243201_4FGL_J2209.8-5028_daily_bin805.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.57
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/209077/ft1_filtered_4FGL_J2209.8-5028_daily_bin805.fits evtable="EVENTS" scfile=/scratch/kocevski/209077/ft2_4FGL_J2209.8-5028_daily_bin805.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/209077/Model_4FGL_J2209.8-5028_daily_bin805.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/209077/ft1_filtered_4FGL_J2209.8-5028_daily_bin805.fits.....................!
real 52.99
user 51.49
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.747       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1483       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.790       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7505       1.0000         .10000E-03   10000.    
     7 'norm      '    7.9135       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .61503       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6252       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .82774       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.1244       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10268E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.4821       1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.775       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    30.262       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .90930       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96787       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=   7031.556     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2880 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    74.722       -.20253E-05** at limit **
   2  Prefactor     19.746        33.994       -.24446E-06    .43959E-05
   3  Prefactor     2.1468        6.4334       -.19706E-06   -.15156E-03
   4  Prefactor     .10000E-03    37.695       -.13956E-04** at limit **
   5  Prefactor     17.790        24.373       -.98716E-06    .81073E-05
   6  Prefactor     2.7507        3.8209       -.12979E-06    .19432E-04
   7  norm          7.9125        4.4734        .72913E-08    .26881E-03
   8  Prefactor     .61645        2.0269        .19227E-06   -.38876E-03
   9  Prefactor     .10000E-03    8.3280        .42827E-06** at limit **
  10  Prefactor     3.6247        6.3037        .49260E-07    .43746E-04
  11  Prefactor     .82715        2.5025        .40574E-07    .45722E-04
  12  Prefactor     .10000E-03    24.928        .14112E-05** at limit **
  13  norm          6.1244        5.4259       -.25812E-06    .24916E-04
  14  Prefactor     .10000E-03    1.4112       -.32515E-07** at limit **
  15  Prefactor     .10000E-03    7.7479       -.20635E-06** at limit **
  16  Prefactor     .10000E-03    2.6644        .18287E-06** at limit **
  17  Prefactor     2.4517        57.575       -.20065E-04   -.29925E-04
  18  Prefactor     20.772        11.801        .24802E-05    .22573E-03
  19  Prefactor     .10000E-03    44.447        .16390E-04** at limit **
  20  Prefactor     .10000E-03    1.4272        .63857E-08** at limit **
  21  Prefactor     30.252        35.068       -.63975E-05    .22482E-04
  22  Prefactor     .10000E-03    9.1686       -.25987E-06** at limit **
  23  norm          .10000E-03    2.2671       -.24495E-08** at limit **
  24  Normalizat    .90944        .16483        .18311E-05    .13781E-03
  25  Prefactor     .96772        .12999       -.45428E-06    .28964E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.7465
  Prefactor  = 2.14677
  Prefactor  = 0.0001
  Prefactor  = 17.7895
  Prefactor  = 2.75066
  norm       = 7.91249
  Prefactor  = 0.616446
  Prefactor  = 0.0001
  Prefactor  = 3.62474
  Prefactor  = 0.827148
  Prefactor  = 0.0001
  norm       = 6.12442
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.45165
  Prefactor  = 20.772
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.2522
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.909443
  Prefactor  = 0.967717
 **********
 **   18 **HESSE 
 **********

 FCN=   7031.556     FROM HESSE     STATUS=OK           429 CALLS     3309 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    76.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.746        34.024        .90132E-04   -1.4819    
   3  Prefactor     2.1468        6.8012        .14057E-02   -1.5415    
   4  Prefactor     .10000E-03    37.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.790        24.370        .94958E-04   -1.4864    
   6  Prefactor     2.7507        3.7974        .18200E-03   -1.5376    
   7  norm          7.9125        4.4746        .63884E-03   -1.5145    
   8  Prefactor     .61645        14.174        .23464E-02   -1.5551    
   9  Prefactor     .10000E-03    8.3317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.6247        6.2782        .21219E-03   -1.5327    
  11  Prefactor     .82715        2.4456        .21924E-03   -1.5526    
  12  Prefactor     .10000E-03    24.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.1244        5.4244        .16223E-03   -1.5213    
  14  Prefactor     .10000E-03    2.4387        .19262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.7495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.7502        .26718E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.4517        57.143        .25949E-03   -1.5395    
  18  Prefactor     20.772        11.697        .87876E-04   -1.4796    
  19  Prefactor     .10000E-03    44.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.4292        .97830E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     30.252        34.930        .72833E-04   -1.4607    
  22  Prefactor     .10000E-03    9.2414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.2686        .12331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .90944        .18917        .25662E-03   -.96129    
  25  Prefactor     .96772        .15121        .20564E-03   -.93813    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.72936e-10
Minuit parameter uncertainties:
  1  5.93614e-05
  2  34.0574
  3  6.8036
  4  5.50499e-05
  5  24.3833
  6  3.7977
  7  4.47474
  8  5.91288
  9  1.00083e-06
  10  6.27931
  11  2.44594
  12  9.08496e-06
  13  5.42484
  14  9.25751e-06
  15  1.40972e-06
  16  2.9745e-05
  17  23.6973
  18  11.6978
  19  8.73967e-06
  20  6.51339e-07
  21  34.9533
  22  6.57915e-06
  23  1.83793e-08
  24  0.189312
  25  0.151278
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  9.085e-06  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.677e-01  1.513e-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:  9.094e-01  1.893e-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: 4.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/209077/likelihoodResults_447984001_448243201_4FGL_J2209.8-5028_daily_bin805.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) = 7031.55585703
delta logL = -0.000191073131646

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7031.55566922
delta logL = -3.2637408367e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2382       1.0000          .0000       10.000    
     3 'Normalizat'    .90944       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96772       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=   7031.556     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      279 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1131.8        .18142E-01** at limit **
   2  Index         1.6924        7.4907        .86447E-01   -.25645E-07
   3  Normalizat    .90945        .24025E-01    .25662E-03    .86119E-03
   4  Prefactor     .96772        .19909E-01    .20564E-03    .10646E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.69235
  Normalizat = 0.909445
  Prefactor  = 0.967717
 **********
 **   18 **HESSE 
 **********

 FCN=   7031.556     FROM HESSE     STATUS=OK            23 CALLS      302 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.264        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6924        9.1001        .34579E-02   -.72286    
   3  Normalizat    .90945        .17738        .51323E-04   -.96129    
   4  Prefactor     .96772        .14702        .41128E-04   -.93813    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.02198e-10
Minuit parameter uncertainties:
  1  0.000229405
  2  604.723
  3  0.177497
  4  0.147086
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209077': 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) = 7031.55566537
delta logL = 5.8026125771e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  2.294e-04  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  1.692e+00  6.047e+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:  9.677e-01  1.471e-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:  9.094e-01  1.775e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 332.474 -50.470

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/209077/cmap_HighResolution_447984001_448243201_4FGL_J2209.8-5028_daily_bin805.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.40e-03', job_status='DONE', photon_flux_upper_limit='4.41e-08', time_completed='2021-09-28 06:36:28.153510', job_id='209077', GAL2='0.97', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1632836188.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='5.80e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='805' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:36:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 209077: <4FGL_J2209.8-5028_daily_bin805> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin805 332.474 -50.4702 447984001 448243201 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 :                                   781.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            960 sec.

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

