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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1056
RA = 332.474, Dec = -50.4702
tmin = 513043201, tmax = 513302401
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='210665', job_status='RUN', time_executed='2021-09-28 06:27:11.622708', time_epoch_executed='1632835631.62' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1056'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/210665

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/210665/ft1_4FGL_J2209.8-5028_daily_bin1056.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/210665/ft2_4FGL_J2209.8-5028_daily_bin1056.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/210665/ft1_4FGL_J2209.8-5028_daily_bin1056.fits outfile=/scratch/kocevski/210665/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1056.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=513043201.0 tmax=513302401.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 6.58
user 6.21
sys 0.30

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/210665/ft1_filtered_4FGL_J2209.8-5028_daily_bin1056.fits" evtable="EVENTS" scfile=/scratch/kocevski/210665/ft2_4FGL_J2209.8-5028_daily_bin1056.fits sctable="SC_DATA" outfile=/scratch/kocevski/210665/ltcube_513043201_513302401_4FGL_J2209.8-5028_daily_bin1056.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/210665/ft2_4FGL_J2209.8-5028_daily_bin1056.fits
.....................!
real 17.94
user 17.43
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/210665/ft1_filtered_4FGL_J2209.8-5028_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/210665/ft2_4FGL_J2209.8-5028_daily_bin1056.fits sctable="SC_DATA" expcube=/scratch/kocevski/210665/ltcube_513043201_513302401_4FGL_J2209.8-5028_daily_bin1056.fits outfile=/scratch/kocevski/210665/expmap_513043201_513302401_4FGL_J2209.8-5028_daily_bin1056.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/210665/ltcube_513043201_513302401_4FGL_J2209.8-5028_daily_bin1056.fits
.....................!
real 195.84
user 188.85
sys 4.83

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/210665/ft1_filtered_4FGL_J2209.8-5028_daily_bin1056.fits scfile=/scratch/kocevski/210665/ft2_4FGL_J2209.8-5028_daily_bin1056.fits outfile=/scratch/kocevski/210665/cmap_513043201_513302401_4FGL_J2209.8-5028_daily_bin1056.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.62
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/210665/ft1_filtered_4FGL_J2209.8-5028_daily_bin1056.fits scfile=/scratch/kocevski/210665/ft2_4FGL_J2209.8-5028_daily_bin1056.fits outfile=/scratch/kocevski/210665/cmap_HighResolution_513043201_513302401_4FGL_J2209.8-5028_daily_bin1056.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.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.8370       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.2636       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.8595       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10540E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.2945       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.241       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14591E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .63357       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.698       1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.090       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10314E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.462       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .24962E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .70043       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0447       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=   4716.284     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2894 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.4371        .11386E-06** at limit **
   2  Prefactor     .10000E-03    25.671       -.61541E-05** at limit **
   3  Prefactor     .10000E-03    8.8046        .12250E-05** at limit **
   4  Prefactor     .10000E-03    10.649        .19426E-05** at limit **
   5  Prefactor     9.8580        23.749       -.12930E-05    .31397E-05
   6  Prefactor     .10000E-03    1.5486       -.85492E-07** at limit **
   7  norm          2.2643        3.6250       -.42561E-07    .95753E-04
   8  Prefactor     7.8592        15.401       -.69440E-05    .12964E-03
   9  Prefactor     .10000E-03    17.708        .71689E-07** at limit **
  10  Prefactor     7.2963        9.9321       -.49583E-06    .16117E-04
  11  Prefactor     10.241        5.3967        .59930E-07    .16445E-03
  12  Prefactor     .10000E-03    99.707       -.50143E-05** at limit **
  13  norm          .10000E-03    5.4313       -.31780E-07** at limit **
  14  Prefactor     .65431        4.1066       -.19467E-05   -.10224E-02
  15  Prefactor     .10001E-03    29.596        .78450E-05** at limit **
  16  Prefactor     20.699        9.0963        .40969E-07   -.18227E-03
  17  Prefactor     22.074        26.396       -.41798E-07    .37733E-04
  18  Prefactor     .10000E-03    4.1513        .60942E-08** at limit **
  19  Prefactor     .10000E-03    62.758       -.51443E-05** at limit **
  20  Prefactor     19.464        11.736        .21975E-06   -.14190E-03
  21  Prefactor     .10020E-03    185.13       -.37434E-04** at limit **
  22  Prefactor     .10000E-03    9.4059       -.41905E-05** at limit **
  23  norm          .10000E-03    8.9326        .86803E-06** at limit **
  24  Normalizat    .70001        .20735        .53337E-06   -.76810E-04
  25  Prefactor     1.0450        .15632        .75236E-06   -.20785E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.858
  Prefactor  = 0.0001
  norm       = 2.26428
  Prefactor  = 7.85922
  Prefactor  = 0.0001
  Prefactor  = 7.2963
  Prefactor  = 10.2414
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.654309
  Prefactor  = 0.000100006
  Prefactor  = 20.6992
  Prefactor  = 22.0745
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 19.4643
  Prefactor  = 0.000100201
  Prefactor  = 0.000100002
  norm       = 0.0001
  Normalizat = 0.700011
  Prefactor  = 1.04497
 **********
 **   18 **HESSE 
 **********

 FCN=   4716.284     FROM HESSE     STATUS=OK           427 CALLS     3321 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.4380        .15641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.0341        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.8580        23.743        .12776E-03   -1.5080    
   6  Prefactor     .10000E-03    1.5563        .83436E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.2643        3.6051        .15988E-03   -1.5407    
   8  Prefactor     7.8592        15.690        .71514E-03   -1.5147    
   9  Prefactor     .10000E-03    17.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.2963        9.9272        .14851E-03   -1.5168    
  11  Prefactor     10.241        5.4029        .10793E-03   -1.5068    
  12  Prefactor     .10000E-03    100.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.4577        .15630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .65431        10.031        .22740E-02   -1.5546    
  15  Prefactor     .10001E-03    30.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     20.699        9.0755        .88039E-04   -1.4798    
  17  Prefactor     22.074        26.430        .85222E-04   -1.4768    
  18  Prefactor     .10000E-03    4.1567        .13658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    63.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.464        11.726        .90790E-04   -1.4825    
  21  Prefactor     .10020E-03    198.49        .72350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.6023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    9.0557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .70001        .23890        .29049E-03   -1.0389    
  25  Prefactor     1.0450        .18012        .19620E-03   -.91245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21232e-09
Minuit parameter uncertainties:
  1  6.15155e-06
  2  0.000629814
  3  5.25726e-05
  4  0.000137939
  5  23.7653
  6  8.26177e-07
  7  3.60549
  8  15.698
  9  7.33936e-06
  10  9.92948
  11  5.4032
  12  0.00103508
  13  6.81818e-06
  14  5.12446
  15  0.000831653
  16  9.07606
  17  26.4435
  18  3.97354e-06
  19  0.000841655
  20  11.7277
  21  0.0126795
  22  0.000255247
  23  4.47937e-05
  24  0.239252
  25  0.18022
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.035e-03  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.045e+00  1.802e-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:  7.000e-01  2.393e-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: 8.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/210665/likelihoodResults_513043201_513302401_4FGL_J2209.8-5028_daily_bin1056.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) = 4716.28440608
delta logL = -4.75073165944e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4716.28440608
delta logL = -4.75040369565e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96354E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3719       1.0000          .0000       10.000    
     3 'Normalizat'    .70001       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0450       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4716.284     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      207 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    893.07        .90713E-02** at limit **
   2  Index         2.3606        7.5129        .50000        .96286E-06
   3  Normalizat    .70001        .18763        .65655E-01    .68206E-05
   4  Prefactor     1.0450        .15317        .40214E-01   -.95099E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.36055
  Normalizat = 0.70001
  Prefactor  = 1.04497
 **********
 **   18 **HESSE 
 **********

 FCN=   4716.284     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    114.21        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3606        6.1737        .50000       -.55611    
   3  Normalizat    .70001        .21385        .29049E-03   -1.0389    
   4  Prefactor     1.0450        .17490        .19620E-03   -.91245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43385e-12
Minuit parameter uncertainties:
  1  0.00013085
  2  4.61715
  3  0.21411
  4  0.174997
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/210665': 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) = 4716.28435857
delta logL = 2.64299160335e-09

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.309e-04  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.361e+00  4.617e+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.045e+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:  7.000e-01  2.141e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/210665/cmap_HighResolution_513043201_513302401_4FGL_J2209.8-5028_daily_bin1056.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.92e-03', job_status='DONE', photon_flux_upper_limit='8.97e-08', time_completed='2021-09-28 06:38:30.037722', job_id='210665', GAL2='1.04', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1632836310.04', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.64e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1056' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:38:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 210665: <4FGL_J2209.8-5028_daily_bin1056> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1056> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 06:25:32 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:25:35 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:25:35 2021
Terminated at Tue Sep 28 06:38:30 2021
Results reported at Tue Sep 28 06:38:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1056 332.474 -50.4702 513043201 513302401 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 :                                   656.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            778 sec.

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

