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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1098
RA = 332.474, Dec = -50.4702
tmin = 523929601, tmax = 524188801
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='210727', job_status='RUN', time_executed='2021-09-28 06:26:27.589465', time_epoch_executed='1632835587.59' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1098'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/210727

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/210727/ft1_4FGL_J2209.8-5028_daily_bin1098.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/210727/ft2_4FGL_J2209.8-5028_daily_bin1098.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/210727/ft1_4FGL_J2209.8-5028_daily_bin1098.fits outfile=/scratch/kocevski/210727/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1098.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=523929601.0 tmax=524188801.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.50
user 3.26
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/210727/ft1_filtered_4FGL_J2209.8-5028_daily_bin1098.fits" evtable="EVENTS" scfile=/scratch/kocevski/210727/ft2_4FGL_J2209.8-5028_daily_bin1098.fits sctable="SC_DATA" outfile=/scratch/kocevski/210727/ltcube_523929601_524188801_4FGL_J2209.8-5028_daily_bin1098.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/210727/ft2_4FGL_J2209.8-5028_daily_bin1098.fits
.....................!
real 12.29
user 11.92
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/210727/ft1_filtered_4FGL_J2209.8-5028_daily_bin1098.fits evtable="EVENTS" scfile=/scratch/kocevski/210727/ft2_4FGL_J2209.8-5028_daily_bin1098.fits sctable="SC_DATA" expcube=/scratch/kocevski/210727/ltcube_523929601_524188801_4FGL_J2209.8-5028_daily_bin1098.fits outfile=/scratch/kocevski/210727/expmap_523929601_524188801_4FGL_J2209.8-5028_daily_bin1098.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/210727/ltcube_523929601_524188801_4FGL_J2209.8-5028_daily_bin1098.fits
.....................!
real 190.24
user 185.05
sys 4.72

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/210727/ft1_filtered_4FGL_J2209.8-5028_daily_bin1098.fits scfile=/scratch/kocevski/210727/ft2_4FGL_J2209.8-5028_daily_bin1098.fits outfile=/scratch/kocevski/210727/cmap_523929601_524188801_4FGL_J2209.8-5028_daily_bin1098.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.58
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/210727/ft1_filtered_4FGL_J2209.8-5028_daily_bin1098.fits scfile=/scratch/kocevski/210727/ft2_4FGL_J2209.8-5028_daily_bin1098.fits outfile=/scratch/kocevski/210727/cmap_HighResolution_523929601_524188801_4FGL_J2209.8-5028_daily_bin1098.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=332.474 yref=-50.4702 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/210727/ft1_filtered_4FGL_J2209.8-5028_daily_bin1098.fits evtable="EVENTS" scfile=/scratch/kocevski/210727/ft2_4FGL_J2209.8-5028_daily_bin1098.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/210727/Model_4FGL_J2209.8-5028_daily_bin1098.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/210727/ft1_filtered_4FGL_J2209.8-5028_daily_bin1098.fits.....................!
real 43.06
user 41.73
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.286       1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.095       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.108       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.682       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.6198       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.8097       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15159E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.274       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10575E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .29664       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5735       1.0000         .10000E-03   10000.    
    15 'Prefactor '    46.568       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.2944       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.5752       1.0000         .10000E-03   10000.    
    19 'Prefactor '    55.448       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .94386E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.395       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .94959       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92286       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=   5651.969     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2892 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.292        28.206        .10467E-04    .24751E-04
   2  Prefactor     35.059        55.300       -.48825E-04    .13140E-04
   3  Prefactor     17.110        10.562       -.24790E-06    .32704E-04
   4  Prefactor     25.665        32.493       -.15709E-04   -.23297E-04
   5  Prefactor     7.6266        18.680        .81883E-05    .57968E-04
   6  Prefactor     .10000E-03    1.7565        .38158E-07** at limit **
   7  norm          4.8100        4.6379        .66586E-06   -.21386E-03
   8  Prefactor     .10000E-03    34.544        .72362E-05** at limit **
   9  Prefactor     38.284        33.648        .10377E-04    .70781E-04
  10  Prefactor     .10000E-03    8.4285       -.56985E-06** at limit **
  11  Prefactor     .29221        2.2564       -.19574E-05    .74689E-03
  12  Prefactor     .10000E-03    34.595       -.73097E-05** at limit **
  13  norm          .10000E-03    2.2139       -.42125E-08** at limit **
  14  Prefactor     3.5726        4.4401        .25443E-05   -.27702E-03
  15  Prefactor     46.538        70.985       -.44316E-04   -.54495E-04
  16  Prefactor     6.2947        5.0316       -.17579E-06   -.62593E-04
  17  Prefactor     .10000E-03    11.725        .11285E-06** at limit **
  18  Prefactor     7.5767        12.266       -.15284E-05    .38505E-04
  19  Prefactor     55.449        94.033        .17774E-05    .13432E-04
  20  Prefactor     .14146        5.8148        .15556E-05   -.78324E-04
  21  Prefactor     15.397        33.367        .29112E-05    .29550E-05
  22  Prefactor     .10000E-03    4.5992       -.64360E-07** at limit **
  23  norm          .10000E-03    2.7994       -.46594E-07** at limit **
  24  Normalizat    .94976        .19567        .32610E-05    .24711E-03
  25  Prefactor     .92272        .15243        .21077E-05    .26313E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.2915
  Prefactor  = 35.0587
  Prefactor  = 17.1098
  Prefactor  = 25.6652
  Prefactor  = 7.62659
  Prefactor  = 0.0001
  norm       = 4.80996
  Prefactor  = 0.0001
  Prefactor  = 38.284
  Prefactor  = 0.000100001
  Prefactor  = 0.292209
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.57261
  Prefactor  = 46.5377
  Prefactor  = 6.2947
  Prefactor  = 0.0001
  Prefactor  = 7.57674
  Prefactor  = 55.4494
  Prefactor  = 0.141457
  Prefactor  = 15.3967
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.949756
  Prefactor  = 0.922716
 **********
 **   18 **HESSE 
 **********

 FCN=   5651.969     FROM HESSE     STATUS=OK           433 CALLS     3325 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.292        28.220        .96334E-04   -1.4876    
   2  Prefactor     35.059        55.347        .67647E-04   -1.4523    
   3  Prefactor     17.110        10.566        .96832E-04   -1.4880    
   4  Prefactor     25.665        32.469        .79048E-04   -1.4694    
   5  Prefactor     7.6266        18.668        .14528E-03   -1.5156    
   6  Prefactor     .10000E-03    1.7677        .97266E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.8100        4.6276        .14969E-03   -1.5269    
   8  Prefactor     .10000E-03    35.946        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     38.284        33.667        .64785E-04   -1.4470    
  10  Prefactor     .10000E-03    8.6184        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .29221        17.131        .20778E-02   -1.5600    
  12  Prefactor     .10000E-03    34.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.2146        .10924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.5726        4.4150        .16016E-03   -1.5330    
  15  Prefactor     46.538        70.794        .58756E-04   -1.4343    
  16  Prefactor     6.2947        5.0366        .14439E-03   -1.5206    
  17  Prefactor     .10000E-03    11.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.5767        12.250        .14571E-03   -1.5157    
  19  Prefactor     55.449        93.830        .53869E-04   -1.4217    
  20  Prefactor     .14146        54.105        .34449E-02   -1.5633    
  21  Prefactor     15.397        33.367        .10208E-03   -1.4923    
  22  Prefactor     .10000E-03    4.6122        .15746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.8010        .12285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .94976        .22769        .26060E-03   -.94733    
  25  Prefactor     .92272        .17813        .21476E-03   -.95352    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44486e-08
Minuit parameter uncertainties:
  1  28.2417
  2  55.4284
  3  10.5672
  4  32.4913
  5  18.6822
  6  2.25082e-06
  7  4.62795
  8  6.46395e-05
  9  33.6839
  10  0.000150471
  11  4.47534
  12  5.81712e-05
  13  8.19799e-07
  14  4.41545
  15  70.9222
  16  5.03689
  17  2.57057e-05
  18  12.2543
  19  94.0814
  20  5.53605
  21  33.4077
  22  9.84925e-06
  23  1.87204e-06
  24  0.227925
  25  0.178246
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  5.817e-05  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.227e-01  1.782e-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.498e-01  2.279e-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: 5.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/210727/likelihoodResults_523929601_524188801_4FGL_J2209.8-5028_daily_bin1098.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) = 5651.96917995
delta logL = -0.00013760622187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5651.96904229
delta logL = 5.7522811403e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3012       1.0000          .0000       10.000    
     3 'Normalizat'    .94976       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92272       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=   5651.969     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      230 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6798.0        .90712E-02** at limit **
   2  Index         2.2873        8.7337        .50000        .32417E-05
   3  Normalizat    .94975        .58371E-01    .45534E-01    .13621E-04
   4  Prefactor     .92272        .47739E-01    .45294E-01    .92472E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.28727
  Normalizat = 0.949755
  Prefactor  = 0.922716
 **********
 **   18 **HESSE 
 **********

 FCN=   5651.969     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    326.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2873        7.4796        .50000       -.57347    
   3  Normalizat    .94975        .21114        .26060E-03   -.94733    
   4  Prefactor     .92272        .17277        .21476E-03   -.95352    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.97951e-11
Minuit parameter uncertainties:
  1  0.00011554
  2  12.7436
  3  0.211329
  4  0.172875
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/210727': 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) = 5651.96904228
delta logL = 6.96982169757e-08

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.155e-04  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.287e+00  1.274e+01  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.227e-01  1.729e-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.498e-01  2.113e-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/210727/cmap_HighResolution_523929601_524188801_4FGL_J2209.8-5028_daily_bin1098.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.32e-03', job_status='DONE', photon_flux_upper_limit='5.61e-08', time_completed='2021-09-28 06:38:13.915643', job_id='210727', GAL2='0.92', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1632836293.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='6.97e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1098' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:38:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 210727: <4FGL_J2209.8-5028_daily_bin1098> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1098 332.474 -50.4702 523929601 524188801 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 :                                   674.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             265.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            757 sec.

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

