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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1271
RA = 332.474, Dec = -50.4702
tmin = 568771201, tmax = 569030401
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='210987', job_status='RUN', time_executed='2021-09-28 06:27:06.671773', time_epoch_executed='1632835626.67' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1271'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/210987

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/210987/ft1_4FGL_J2209.8-5028_daily_bin1271.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/210987/ft2_4FGL_J2209.8-5028_daily_bin1271.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/210987/ft1_4FGL_J2209.8-5028_daily_bin1271.fits outfile=/scratch/kocevski/210987/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1271.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=568771201.0 tmax=569030401.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.55
user 3.29
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/210987/ft2_4FGL_J2209.8-5028_daily_bin1271.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/210987/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1271.fits evtable="EVENTS" outfile="/scratch/kocevski/210987/ft1_filtered_4FGL_J2209.8-5028_daily_bin1271.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.83
user 0.30
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/210987/ft1_filtered_4FGL_J2209.8-5028_daily_bin1271.fits" evtable="EVENTS" scfile=/scratch/kocevski/210987/ft2_4FGL_J2209.8-5028_daily_bin1271.fits sctable="SC_DATA" outfile=/scratch/kocevski/210987/ltcube_568771201_569030401_4FGL_J2209.8-5028_daily_bin1271.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/210987/ft2_4FGL_J2209.8-5028_daily_bin1271.fits
.....................!
real 11.91
user 11.56
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/210987/ft1_filtered_4FGL_J2209.8-5028_daily_bin1271.fits evtable="EVENTS" scfile=/scratch/kocevski/210987/ft2_4FGL_J2209.8-5028_daily_bin1271.fits sctable="SC_DATA" expcube=/scratch/kocevski/210987/ltcube_568771201_569030401_4FGL_J2209.8-5028_daily_bin1271.fits outfile=/scratch/kocevski/210987/expmap_568771201_569030401_4FGL_J2209.8-5028_daily_bin1271.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/210987/ltcube_568771201_569030401_4FGL_J2209.8-5028_daily_bin1271.fits
.....................!
real 190.74
user 185.38
sys 5.03

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/210987/ft1_filtered_4FGL_J2209.8-5028_daily_bin1271.fits scfile=/scratch/kocevski/210987/ft2_4FGL_J2209.8-5028_daily_bin1271.fits outfile=/scratch/kocevski/210987/cmap_568771201_569030401_4FGL_J2209.8-5028_daily_bin1271.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/210987/ft1_filtered_4FGL_J2209.8-5028_daily_bin1271.fits scfile=/scratch/kocevski/210987/ft2_4FGL_J2209.8-5028_daily_bin1271.fits outfile=/scratch/kocevski/210987/cmap_HighResolution_568771201_569030401_4FGL_J2209.8-5028_daily_bin1271.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/210987/ft1_filtered_4FGL_J2209.8-5028_daily_bin1271.fits evtable="EVENTS" scfile=/scratch/kocevski/210987/ft2_4FGL_J2209.8-5028_daily_bin1271.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/210987/Model_4FGL_J2209.8-5028_daily_bin1271.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/210987/ft1_filtered_4FGL_J2209.8-5028_daily_bin1271.fits.....................!
real 44.03
user 42.80
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.734       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10483E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0949       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    20.734       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.812       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14017E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.720       1.0000         .10000E-03   10000.    
    13 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.786       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2233       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    11.512       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0042       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1895       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=   5299.889     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2917 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.628        37.592       -.62228E-05    .54671E-04
   2  Prefactor     .10000E-03    34.691        .20507E-05** at limit **
   3  Prefactor     1.0925        13.322        .28782E-04    .59598E-04
   4  Prefactor     .10000E-03    15.108       -.58961E-06** at limit **
   5  Prefactor     .10000E-03    41.774        .29943E-06** at limit **
   6  Prefactor     .10000E-03    1.5891        .75852E-07** at limit **
   7  norm          20.733        7.4044       -.10523E-06    .32750E-05
   8  Prefactor     .10000E-03    6.4831       -.15569E-07** at limit **
   9  Prefactor     10.811        34.359       -.43549E-05    .89066E-05
  10  Prefactor     .10002E-03    10.360       -.76340E-05** at limit **
  11  Prefactor     .10000E-03    3.3783       -.14663E-05** at limit **
  12  Prefactor     16.282        150.26        .71523E-04   -.82637E-04
  13  norm          .10000E-03    3.2686       -.62302E-06** at limit **
  14  Prefactor     .10000E-03    3.3191       -.16246E-06** at limit **
  15  Prefactor     .10000E-03    23.206       -.17980E-05** at limit **
  16  Prefactor     11.787        7.1699       -.27938E-06   -.31986E-05
  17  Prefactor     .10000E-03    7.2031       -.22787E-06** at limit **
  18  Prefactor     3.2245        9.1793        .28026E-05   -.14255E-04
  19  Prefactor     .10000E-03    30.611       -.12338E-05** at limit **
  20  Prefactor     .10000E-03    3.7647       -.28336E-07** at limit **
  21  Prefactor     .10000E-03    11.707        .46524E-06** at limit **
  22  Prefactor     .10000E-03    19.685        .19409E-05** at limit **
  23  norm          11.512        9.7712        .40184E-08   -.20921E-04
  24  Normalizat    1.0039        .22420        .63063E-06    .88030E-04
  25  Prefactor     1.1899        .17975       -.28373E-05    .10650E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.6278
  Prefactor  = 0.0001
  Prefactor  = 1.09247
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.7327
  Prefactor  = 0.0001
  Prefactor  = 10.8107
  Prefactor  = 0.000100016
  Prefactor  = 0.000100001
  Prefactor  = 16.2816
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.7865
  Prefactor  = 0.0001
  Prefactor  = 3.22449
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.5118
  Normalizat = 1.00387
  Prefactor  = 1.18988
 **********
 **   18 **HESSE 
 **********

 FCN=   5299.889     FROM HESSE     STATUS=OK           419 CALLS     3336 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.628        37.641        .67041E-04   -1.4513    
   2  Prefactor     .10000E-03    34.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.0925        13.337        .22789E-02   -1.5499    
   4  Prefactor     .10000E-03    15.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    41.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.5942        .89610E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          20.733        7.4053        .87962E-04   -1.4797    
   8  Prefactor     .10000E-03    6.4889        .18104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.811        34.318        .12185E-03   -1.5050    
  10  Prefactor     .10002E-03    10.816        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.4291        .13068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.282        150.97        .48975E-03   -1.4901    
  13  norm          .10000E-03    3.2751        .12857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.3999        .25886E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    23.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.787        7.1858        .11669E-03   -1.5021    
  17  Prefactor     .10000E-03    7.2065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.2245        9.1823        .11282E-02   -1.5349    
  19  Prefactor     .10000E-03    30.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.7734        .13795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    19.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          11.512        9.7711        .11807E-03   -1.5029    
  24  Normalizat    1.0039        .25628        .29022E-03   -.92901    
  25  Prefactor     1.1899        .20557        .21634E-03   -.86643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28914e-09
Minuit parameter uncertainties:
  1  37.6659
  2  7.58521e-05
  3  7.63606
  4  2.0782e-06
  5  5.17615e-08
  6  3.88653e-06
  7  7.40558
  8  3.30392e-06
  9  34.3805
  10  0.000831023
  11  9.33113e-05
  12  99.4895
  13  4.01233e-05
  14  8.44266e-06
  15  2.81547e-05
  16  7.18631
  17  2.67974e-05
  18  9.18626
  19  1.93246e-05
  20  7.5012e-07
  21  8.37615e-06
  22  5.62563e-05
  23  9.77247
  24  0.256592
  25  0.205713
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.628e+01  9.949e+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.190e+00  2.057e-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.004e+00  2.566e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/210987/likelihoodResults_568771201_569030401_4FGL_J2209.8-5028_daily_bin1271.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) = 5299.88704834
delta logL = 0.0020296934872

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5299.88633433
delta logL = 0.00274370314855

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.552       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2187       1.0000          .0000       10.000    
     3 'Normalizat'    1.0051       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1895       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5299.886     FROM MIGRAD    STATUS=FAILED        95 CALLS      275 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.783        183.84        .44175E-03    .14957E-03
   2  Index         2.2008        2.0946        .64111E-02    .41910E-03
   3  Normalizat    1.0049        .25123        .29008E-03   -.85400E-04
   4  Prefactor     1.1891        .20269        .21640E-03    .25060E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5299.886     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      348 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.783        183.84        .90808E-03   -1.4796    
   2  Index         2.2008        2.0946        .21267E-02   -.59418    
   3  Normalizat    1.0049        .25123        .32163E-03   -.92867    
   4  Prefactor     1.1891        .20269        .29568E-03   -.86667    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5299.886     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      376 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.787        177.29        .17670E-04    .46581E-04
   2  Index         2.2004        2.0603        .25644E-03   -.38569E-05
   3  Normalizat    1.0049        .25144        .11603E-04    .15873E-04
   4  Prefactor     1.1891        .20285        .86559E-05    .15235E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.787
  Index      = 2.20039
  Normalizat = 1.0049
  Prefactor  = 1.18912
 **********
 **   18 **HESSE 
 **********

 FCN=   5299.886     FROM HESSE     STATUS=OK            23 CALLS      399 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.787        176.99        .35340E-05   -1.4796    
   2  Index         2.2004        2.0555        .10258E-04   -.59429    
   3  Normalizat    1.0049        .25112        .23206E-05   -.92866    
   4  Prefactor     1.1891        .20258        .17312E-05   -.86667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7451e-10
Minuit parameter uncertainties:
  1  121.799
  2  2.15082
  3  0.251418
  4  0.202714
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/210987': 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) = 5299.88628041
delta logL = 0.00279762603259

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  2.079e+01  1.218e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.200e+00  2.151e+00  0.000e+00  1.000e+01 (-1.000e+00)
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.189e+00  2.027e-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.005e+00  2.514e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/210987/cmap_HighResolution_568771201_569030401_4FGL_J2209.8-5028_daily_bin1271.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.72e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-09-28 06:38:11.808334', job_id='210987', GAL2='1.19', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1632836291.81', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='2.80e-03', ts2='0.03', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1271' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:38:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 210987: <4FGL_J2209.8-5028_daily_bin1271> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1271> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 06:26:00 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:26:02 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:02 2021
Terminated at Tue Sep 28 06:38:12 2021
Results reported at Tue Sep 28 06:38:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1271 332.474 -50.4702 568771201 569030401 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 :                                   663.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            732 sec.

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

