/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 92 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 = 7358
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1513
RA = 332.474, Dec = -50.4702
tmin = 631497601, tmax = 631756801
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='211910', job_status='RUN', time_executed='2021-09-28 06:32:22.214201', time_epoch_executed='1632835942.21' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1513'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211910

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211910/ft1_4FGL_J2209.8-5028_daily_bin1513.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211910/ft2_4FGL_J2209.8-5028_daily_bin1513.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211910/ft1_4FGL_J2209.8-5028_daily_bin1513.fits outfile=/scratch/kocevski/211910/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1513.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=631497601.0 tmax=631756801.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 2.54
user 2.35
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211910/ft1_filtered_4FGL_J2209.8-5028_daily_bin1513.fits" evtable="EVENTS" scfile=/scratch/kocevski/211910/ft2_4FGL_J2209.8-5028_daily_bin1513.fits sctable="SC_DATA" outfile=/scratch/kocevski/211910/ltcube_631497601_631756801_4FGL_J2209.8-5028_daily_bin1513.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/211910/ft2_4FGL_J2209.8-5028_daily_bin1513.fits
.....................!
real 12.15
user 11.81
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211910/ft1_filtered_4FGL_J2209.8-5028_daily_bin1513.fits evtable="EVENTS" scfile=/scratch/kocevski/211910/ft2_4FGL_J2209.8-5028_daily_bin1513.fits sctable="SC_DATA" expcube=/scratch/kocevski/211910/ltcube_631497601_631756801_4FGL_J2209.8-5028_daily_bin1513.fits outfile=/scratch/kocevski/211910/expmap_631497601_631756801_4FGL_J2209.8-5028_daily_bin1513.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/211910/ltcube_631497601_631756801_4FGL_J2209.8-5028_daily_bin1513.fits
.....................!
real 189.44
user 185.01
sys 4.12

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/211910/ft1_filtered_4FGL_J2209.8-5028_daily_bin1513.fits scfile=/scratch/kocevski/211910/ft2_4FGL_J2209.8-5028_daily_bin1513.fits outfile=/scratch/kocevski/211910/cmap_631497601_631756801_4FGL_J2209.8-5028_daily_bin1513.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.57
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211910/ft1_filtered_4FGL_J2209.8-5028_daily_bin1513.fits scfile=/scratch/kocevski/211910/ft2_4FGL_J2209.8-5028_daily_bin1513.fits outfile=/scratch/kocevski/211910/cmap_HighResolution_631497601_631756801_4FGL_J2209.8-5028_daily_bin1513.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/211910/ft1_filtered_4FGL_J2209.8-5028_daily_bin1513.fits evtable="EVENTS" scfile=/scratch/kocevski/211910/ft2_4FGL_J2209.8-5028_daily_bin1513.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211910/Model_4FGL_J2209.8-5028_daily_bin1513.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/211910/ft1_filtered_4FGL_J2209.8-5028_daily_bin1513.fits.....................!
real 41.29
user 40.13
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .29750       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.438       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4713       1.0000         .10000E-03   10000.    
     7 'norm      '    1.6754       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.730       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .47718E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.5737       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.0230       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .42874E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    101.79       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.9679       1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.169       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .72264       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.6069       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97568       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=   4926.126     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     2925 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    51.510       -.21975E-04** at limit **
   2  Prefactor     .10000E-03    108.81       -.23174E-04** at limit **
   3  Prefactor     .31955        12.516        .94574E-06   -.25848E-03
   4  Prefactor     21.447        59.288        .71906E-05   -.22999E-04
   5  Prefactor     .10000E-03    25.505       -.86666E-06** at limit **
   6  Prefactor     1.4751        11.547       -.25018E-05   -.39519E-04
   7  norm          1.6730        5.5414       -.68783E-06   -.49184E-03
   8  Prefactor     .10000E-03    55.538        .18801E-05** at limit **
   9  Prefactor     .10000E-03    22.144        .58812E-05** at limit **
  10  Prefactor     14.731        12.671        .60262E-07   -.29279E-04
  11  Prefactor     .10002E-03    2.0856        .30135E-06** at limit **
  12  Prefactor     .10000E-03    57.480        .24607E-05** at limit **
  13  norm          5.5741        5.5111        .10344E-06   -.10931E-05
  14  Prefactor     6.0208        5.3402       -.24825E-06   -.12927E-03
  15  Prefactor     .10000E-03    69.464        .36403E-04** at limit **
  16  Prefactor     .10000E-03    3.6912       -.83711E-07** at limit **
  17  Prefactor     .10000E-03    19.393       -.66367E-05** at limit **
  18  Prefactor     .10000E-03    15.922        .10652E-05** at limit **
  19  Prefactor     101.80        124.90        .41645E-05    .29779E-05
  20  Prefactor     1.9662        7.7085       -.71675E-06   -.37543E-04
  21  Prefactor     28.169        28.845        .47714E-06    .55370E-05
  22  Prefactor     .10000E-03    5.7253       -.55295E-08** at limit **
  23  norm          .72291        2.7095        .60861E-06   -.58941E-03
  24  Normalizat    1.6073        .24675       -.14177E-06   -.37391E-04
  25  Prefactor     .97548        .19394       -.45711E-07   -.27553E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.319552
  Prefactor  = 21.4471
  Prefactor  = 0.0001
  Prefactor  = 1.47511
  norm       = 1.673
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.7307
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  norm       = 5.57407
  Prefactor  = 6.0208
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 101.796
  Prefactor  = 1.96615
  Prefactor  = 28.1695
  Prefactor  = 0.0001
  norm       = 0.722909
  Normalizat = 1.60731
  Prefactor  = 0.97548
 **********
 **   18 **HESSE 
 **********

 FCN=   4926.126     FROM HESSE     STATUS=OK           431 CALLS     3356 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    108.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .31955        179.04        .44475E-02   -1.5595    
   4  Prefactor     21.447        59.663        .86507E-04   -1.4781    
   5  Prefactor     .10000E-03    25.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.4751        11.322        .35424E-03   -1.5465    
   7  norm          1.6730        5.9809        .14854E-02   -1.5449    
   8  Prefactor     .10000E-03    57.433        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.731        12.665        .10436E-03   -1.4940    
  11  Prefactor     .10002E-03    23.705        .19618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    57.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.5741        5.5160        .15997E-03   -1.5236    
  14  Prefactor     6.0208        5.3503        .14574E-03   -1.5217    
  15  Prefactor     .10000E-03    69.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.777        .25942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     101.80        124.78        .39850E-04   -1.3687    
  20  Prefactor     1.9662        7.7076        .29561E-03   -1.5428    
  21  Prefactor     28.169        28.827        .75485E-04   -1.4646    
  22  Prefactor     .10000E-03    5.7301        .16402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .72291        16.462        .24297E-02   -1.5538    
  24  Normalizat    1.6073        .28561        .26467E-03   -.74806    
  25  Prefactor     .97548        .22559        .26208E-03   -.93551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.28727e-09
Minuit parameter uncertainties:
  1  6.22433e-05
  2  0.000148362
  3  15.171
  4  59.8301
  5  2.81228e-05
  6  8.17546
  7  5.983
  8  0.0001502
  9  2.01968e-06
  10  12.6672
  11  0.00136403
  12  1.696e-06
  13  5.51647
  14  5.35069
  15  1.09908e-05
  16  9.0529e-05
  17  1.21873e-05
  18  5.38777e-05
  19  125.1
  20  7.71145
  21  28.8417
  22  1.2226e-06
  23  6.90115
  24  0.285897
  25  0.225809
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  9.755e-01  2.258e-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.607e+00  2.859e-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.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/211910/likelihoodResults_631497601_631756801_4FGL_J2209.8-5028_daily_bin1513.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) = 4926.1261342
delta logL = -8.27239509817e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4926.12605183
delta logL = -3.54884832632e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6621       1.0000          .0000       10.000    
     3 'Normalizat'    1.6073       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97548       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=   4926.126     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      271 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10219E-03    275.12        .18142E-02** at limit **
   2  Index         2.5940        6.4744        .50000        .60107E-05
   3  Normalizat    1.6073        .15671E-01    .26467E-03   -.36271E-04
   4  Prefactor     .97548        .12575E-01    .26208E-03   -.40820E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102185
  Index      = 2.59403
  Normalizat = 1.60731
  Prefactor  = 0.97548
 **********
 **   18 **HESSE 
 **********

 FCN=   4926.126     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      300 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10219E-03    1139.5        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5940        7.9893        .50000       -.50202    
   3  Normalizat    1.6073        .33086E-01    .52934E-04   -.74806    
   4  Prefactor     .97548        .26551E-01    .10483E-04   -.93551    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.96201e-09
Minuit parameter uncertainties:
  1  0.101805
  2  848.04
  3  0.033086
  4  0.0265509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211910': 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) = 4926.12605173
delta logL = -2.51867277257e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  9.755e-01  2.655e-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:  1.607e+00  3.309e-02  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/211910/cmap_HighResolution_631497601_631756801_4FGL_J2209.8-5028_daily_bin1513.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.63e-03', job_status='DONE', photon_flux_upper_limit='8.60e-08', time_completed='2021-09-28 06:43:14.638008', job_id='211910', GAL2='0.98', fit_tolerance='1e-08', EG2='1.61', EG='1.61', time_epoch_completed='1632836594.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='-2.52e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1513' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:43:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 211910: <4FGL_J2209.8-5028_daily_bin1513> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1513> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 06:30:37 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:30:39 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:30:39 2021
Terminated at Tue Sep 28 06:43:15 2021
Results reported at Tue Sep 28 06:43:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1513 332.474 -50.4702 631497601 631756801 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 :                                   626.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            758 sec.

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

