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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin886
RA = 332.474, Dec = -50.4702
tmin = 468979201, tmax = 469238401
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='209194', job_status='RUN', time_executed='2021-09-28 06:23:48.088129', time_epoch_executed='1632835428.09' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='886'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209194

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209194/ft1_4FGL_J2209.8-5028_daily_bin886.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209194/ft2_4FGL_J2209.8-5028_daily_bin886.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209194/ft1_4FGL_J2209.8-5028_daily_bin886.fits outfile=/scratch/kocevski/209194/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin886.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=468979201.0 tmax=469238401.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.64
user 3.16
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/209194/ft1_filtered_4FGL_J2209.8-5028_daily_bin886.fits" evtable="EVENTS" scfile=/scratch/kocevski/209194/ft2_4FGL_J2209.8-5028_daily_bin886.fits sctable="SC_DATA" outfile=/scratch/kocevski/209194/ltcube_468979201_469238401_4FGL_J2209.8-5028_daily_bin886.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/209194/ft2_4FGL_J2209.8-5028_daily_bin886.fits
.....................!
real 11.75
user 11.42
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209194/ft1_filtered_4FGL_J2209.8-5028_daily_bin886.fits evtable="EVENTS" scfile=/scratch/kocevski/209194/ft2_4FGL_J2209.8-5028_daily_bin886.fits sctable="SC_DATA" expcube=/scratch/kocevski/209194/ltcube_468979201_469238401_4FGL_J2209.8-5028_daily_bin886.fits outfile=/scratch/kocevski/209194/expmap_468979201_469238401_4FGL_J2209.8-5028_daily_bin886.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/209194/ltcube_468979201_469238401_4FGL_J2209.8-5028_daily_bin886.fits
.....................!
real 190.10
user 185.02
sys 4.77

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/209194/ft1_filtered_4FGL_J2209.8-5028_daily_bin886.fits scfile=/scratch/kocevski/209194/ft2_4FGL_J2209.8-5028_daily_bin886.fits outfile=/scratch/kocevski/209194/cmap_468979201_469238401_4FGL_J2209.8-5028_daily_bin886.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/209194/ft1_filtered_4FGL_J2209.8-5028_daily_bin886.fits scfile=/scratch/kocevski/209194/ft2_4FGL_J2209.8-5028_daily_bin886.fits outfile=/scratch/kocevski/209194/cmap_HighResolution_468979201_469238401_4FGL_J2209.8-5028_daily_bin886.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/209194/ft1_filtered_4FGL_J2209.8-5028_daily_bin886.fits evtable="EVENTS" scfile=/scratch/kocevski/209194/ft2_4FGL_J2209.8-5028_daily_bin886.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/209194/Model_4FGL_J2209.8-5028_daily_bin886.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/209194/ft1_filtered_4FGL_J2209.8-5028_daily_bin886.fits.....................!
real 42.81
user 41.55
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.575       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.594       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .24171       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.589       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.6229       1.0000         .10000E-03   10000.    
     7 'norm      '    16.581       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.7362       1.0000         .10000E-03   10000.    
     9 'Prefactor '    93.137       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .31244E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    34.726       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.8790       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10876E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.562       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.025       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    44.949       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .67348       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0514       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=   5416.149     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     3501 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.574        28.560       -.33737E-06    .45140E-04
   2  Prefactor     16.594        29.067       -.36905E-06    .65110E-05
   3  Prefactor     .24772        6.1794        .10259E-06   -.56634E-04
   4  Prefactor     12.588        20.428       -.68988E-07    .56156E-04
   5  Prefactor     .10000E-03    10.427       -.34157E-06** at limit **
   6  Prefactor     4.6233        4.3197        .62079E-06    .14134E-02
   7  norm          16.580        6.8237       -.31846E-07    .17453E-03
   8  Prefactor     7.7358        11.995       -.22767E-06    .11113E-04
   9  Prefactor     93.152        52.845        .27136E-05   -.16905E-03
  10  Prefactor     .10002E-03    30.667        .18731E-04** at limit **
  11  Prefactor     .10000E-03    .89776       -.86068E-07** at limit **
  12  Prefactor     34.860        117.74       -.10603E-05   -.10873E-03
  13  norm          .10000E-03    2.6211       -.15636E-07** at limit **
  14  Prefactor     8.8786        4.8765        .56036E-07    .11844E-03
  15  Prefactor     .10001E-03    145.15       -.35713E-05** at limit **
  16  Prefactor     13.565        8.2693        .37043E-06   -.11381E-04
  17  Prefactor     12.024        29.392        .13995E-05   -.73303E-05
  18  Prefactor     .10000E-03    2.6550       -.30568E-06** at limit **
  19  Prefactor     .10000E-03    28.322       -.15636E-06** at limit **
  20  Prefactor     .10000E-03    5.8619       -.70285E-06** at limit **
  21  Prefactor     44.943        49.952        .35895E-06    .14706E-04
  22  Prefactor     .10000E-03    4.4107       -.24553E-06** at limit **
  23  norm          .10000E-03    5.1275       -.13985E-06** at limit **
  24  Normalizat    .67323        .19734       -.30750E-05    .75853E-05
  25  Prefactor     1.0516        .14906        .35722E-05    .96127E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.5737
  Prefactor  = 16.5941
  Prefactor  = 0.247718
  Prefactor  = 12.5884
  Prefactor  = 0.0001
  Prefactor  = 4.62334
  norm       = 16.5802
  Prefactor  = 7.73581
  Prefactor  = 93.1522
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 34.86
  norm       = 0.0001
  Prefactor  = 8.87865
  Prefactor  = 0.000100012
  Prefactor  = 13.5652
  Prefactor  = 12.0244
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 44.9427
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.673225
  Prefactor  = 1.05161
 **********
 **   18 **HESSE 
 **********

 FCN=   5416.149     FROM HESSE     STATUS=OK           429 CALLS     3930 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.574        28.567        .41249E-03   -1.4737    
   2  Prefactor     16.594        29.072        .98322E-04   -1.4893    
   3  Prefactor     .24772        33.866        .34782E-02   -1.5608    
   4  Prefactor     12.588        20.405        .11290E-03   -1.4998    
   5  Prefactor     .10000E-03    10.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.6233        4.3488        .71185E-03   -1.5278    
   7  norm          16.580        6.8212        .98360E-04   -1.4893    
   8  Prefactor     7.7358        11.992        .14417E-03   -1.5152    
   9  Prefactor     93.152        52.670        .41642E-04   -1.3775    
  10  Prefactor     .10002E-03    31.491        .39613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .90109        .68111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     34.860        118.40        .68004E-04   -1.4526    
  13  norm          .10000E-03    2.6244        .11636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.8786        4.8880        .11390E-03   -1.5112    
  15  Prefactor     .10001E-03    146.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.565        8.2623        .10876E-03   -1.4971    
  17  Prefactor     12.024        29.407        .11552E-03   -1.5014    
  18  Prefactor     .10000E-03    2.6616        .11717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    28.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.9733        .17427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     44.943        49.943        .59801E-04   -1.4366    
  22  Prefactor     .10000E-03    4.4187        .15099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.2192        .16277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .67323        .22488        .29792E-03   -1.0496    
  25  Prefactor     1.0516        .17495        .19996E-03   -.91029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20719e-08
Minuit parameter uncertainties:
  1  28.5834
  2  29.0971
  3  5.79504
  4  20.4167
  5  9.02506e-05
  6  4.34908
  7  6.8215
  8  11.9957
  9  52.6968
  10  0.00164024
  11  7.04186e-06
  12  119.209
  13  1.57764e-07
  14  4.88822
  15  0.00267119
  16  8.26301
  17  29.4428
  18  3.72544e-05
  19  8.4922e-05
  20  0.000124909
  21  49.9892
  22  3.68822e-05
  23  2.23526e-05
  24  0.225185
  25  0.175046
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  3.486e+01  1.192e+02  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.052e+00  1.750e-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.732e-01  2.252e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/209194/likelihoodResults_468979201_469238401_4FGL_J2209.8-5028_daily_bin886.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) = 5414.56459207
delta logL = 1.58436184788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5414.2427569
delta logL = 1.90619702069

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.6635       1.0000          .0000       10.000    
     3 'Normalizat'    .58948       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0977       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=   5414.243     FROM MIGRAD    STATUS=CONVERGED    225 CALLS      619 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .19874E-01    .13007E-03** at limit **
   2  Index         8.6634        7.3624        .49415E-02   -.47290E-04
   3  Normalizat    .58958        .12508        .31576E-03    .90028E-03
   4  Prefactor     1.0978        .10309        .19601E-03    .13057E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.66337
  Normalizat = 0.589575
  Prefactor  = 1.09779
 **********
 **   18 **HESSE 
 **********

 FCN=   5414.243     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      654 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .12208E-01    .17062E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.6634        7.3080        .19766E-03    .82224    
   3  Normalizat    .58958        .11071        .63152E-04   -1.0843    
   4  Prefactor     1.0978        .91390E-01    .39202E-04   -.89537    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.00577e-09
Minuit parameter uncertainties:
  1  4.72376e-08
  2  3.45034
  3  0.110752
  4  0.0914034
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209194': 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) = 5414.24274739
delta logL = 1.9062065291

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  4.724e-08  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  8.663e+00  3.450e+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.098e+00  9.140e-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:  5.896e-01  1.108e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.16
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 8.66 +/- 3.45
Photon Flux (Free Index): 8.43e-08 +/- 7.03e-07
Energy Flux (Free Index): 9.64e-06 +/- 8.02e-05

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/209194/cmap_HighResolution_468979201_469238401_4FGL_J2209.8-5028_daily_bin886.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.07e-03', comment='SUCCESS', energy_flux2='9.64e-06', dlogl='1.91e+00', photon_flux2='8.43e-08', job_status='DONE', time_completed='2021-09-28 06:35:53.447788', photon_index_error2='3.45', photon_index2='8.66', ts='0.11', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='8.02e-05', EG='0.67', time_epoch_completed='1632836153.45', return_code='0', job_id='209194', GAL2='1.10', EG2='0.59', return_code2='102', photon_flux_error2='7.03e-07', ts2='4.16', photon_index='2.37' WHERE bin_id='886' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:35:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 209194: <4FGL_J2209.8-5028_daily_bin886> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin886> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 06:20:36 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:20:38 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:38 2021
Terminated at Tue Sep 28 06:35:54 2021
Results reported at Tue Sep 28 06:35:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin886 332.474 -50.4702 468979201 469238401 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 :                                   723.44 sec.
    Max Memory :                                 1197 MB
    Average Memory :                             281.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            918 sec.

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

