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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1076
RA = 332.474, Dec = -50.4702
tmin = 518227201, tmax = 518486401
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='210695', job_status='RUN', time_executed='2021-09-28 06:26:24.143690', time_epoch_executed='1632835584.14' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1076'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/210695

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/210695/ft1_4FGL_J2209.8-5028_daily_bin1076.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/210695/ft2_4FGL_J2209.8-5028_daily_bin1076.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/210695/ft1_4FGL_J2209.8-5028_daily_bin1076.fits outfile=/scratch/kocevski/210695/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1076.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=518227201.0 tmax=518486401.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.57
user 3.37
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/210695/ft2_4FGL_J2209.8-5028_daily_bin1076.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/210695/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1076.fits evtable="EVENTS" outfile="/scratch/kocevski/210695/ft1_filtered_4FGL_J2209.8-5028_daily_bin1076.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.50
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/210695/ft1_filtered_4FGL_J2209.8-5028_daily_bin1076.fits" evtable="EVENTS" scfile=/scratch/kocevski/210695/ft2_4FGL_J2209.8-5028_daily_bin1076.fits sctable="SC_DATA" outfile=/scratch/kocevski/210695/ltcube_518227201_518486401_4FGL_J2209.8-5028_daily_bin1076.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/210695/ft2_4FGL_J2209.8-5028_daily_bin1076.fits
.....................!
real 11.80
user 11.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/210695/ft1_filtered_4FGL_J2209.8-5028_daily_bin1076.fits evtable="EVENTS" scfile=/scratch/kocevski/210695/ft2_4FGL_J2209.8-5028_daily_bin1076.fits sctable="SC_DATA" expcube=/scratch/kocevski/210695/ltcube_518227201_518486401_4FGL_J2209.8-5028_daily_bin1076.fits outfile=/scratch/kocevski/210695/expmap_518227201_518486401_4FGL_J2209.8-5028_daily_bin1076.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/210695/ltcube_518227201_518486401_4FGL_J2209.8-5028_daily_bin1076.fits
.....................!
real 190.08
user 185.10
sys 4.67

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/210695/ft1_filtered_4FGL_J2209.8-5028_daily_bin1076.fits scfile=/scratch/kocevski/210695/ft2_4FGL_J2209.8-5028_daily_bin1076.fits outfile=/scratch/kocevski/210695/cmap_518227201_518486401_4FGL_J2209.8-5028_daily_bin1076.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.52
user 0.38
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/210695/ft1_filtered_4FGL_J2209.8-5028_daily_bin1076.fits evtable="EVENTS" scfile=/scratch/kocevski/210695/ft2_4FGL_J2209.8-5028_daily_bin1076.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/210695/Model_4FGL_J2209.8-5028_daily_bin1076.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/210695/ft1_filtered_4FGL_J2209.8-5028_daily_bin1076.fits.....................!
real 44.93
user 43.68
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12643E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.300       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.765       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.605       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.6383       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.733       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5454       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .25022E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    38.729       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.596       1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.885       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.5556       1.0000         .10000E-03   10000.    
    19 'Prefactor '    36.484       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11536E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.484       1.0000         .10000E-03   10000.    
    23 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .98896       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1001       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=   5971.920     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2886 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    148.83        .87998E-04** at limit **
   2  Prefactor     32.287        52.058        .14841E-05    .81014E-04
   3  Prefactor     16.765        9.7652       -.50103E-06   -.22253E-04
   4  Prefactor     .10000E-03    28.302       -.57175E-07** at limit **
   5  Prefactor     32.579        24.680       -.16885E-05   -.17814E-03
   6  Prefactor     .10000E-03    4.8478       -.64003E-06** at limit **
   7  norm          8.6381        5.5524       -.89326E-07    .15754E-03
   8  Prefactor     .10000E-03    3.3993        .77255E-08** at limit **
   9  Prefactor     34.666        36.343        .28527E-05    .10444E-03
  10  Prefactor     2.5750        8.1851        .70383E-05   -.15667E-03
  11  Prefactor     .10000E-03    2.2814       -.98631E-06** at limit **
  12  Prefactor     .10005E-03    658.87        .53380E-04** at limit **
  13  norm          .10000E-03    3.0488       -.24578E-06** at limit **
  14  Prefactor     .10000E-03    2.2193       -.38834E-06** at limit **
  15  Prefactor     38.740        39.643       -.11623E-05   -.28939E-04
  16  Prefactor     17.596        8.6161        .11540E-06    .64508E-04
  17  Prefactor     27.944        40.208        .35374E-05   -.47132E-04
  18  Prefactor     4.5400        18.503       -.85795E-05   -.18300E-03
  19  Prefactor     36.484        112.25        .76265E-05    .41006E-04
  20  Prefactor     .10000E-03    4.3060       -.26969E-06** at limit **
  21  Prefactor     .10000E-03    38.116        .35586E-06** at limit **
  22  Prefactor     13.481        12.200       -.13448E-06    .33933E-04
  23  norm          .10000E-03    5.0577       -.16527E-06** at limit **
  24  Normalizat    .98927        .21617        .25578E-05    .58906E-04
  25  Prefactor     1.1000        .16509        .10417E-05    .74314E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Prefactor  = 32.2872
  Prefactor  = 16.765
  Prefactor  = 0.0001
  Prefactor  = 32.5786
  Prefactor  = 0.000100001
  norm       = 8.63813
  Prefactor  = 0.0001
  Prefactor  = 34.6656
  Prefactor  = 2.57498
  Prefactor  = 0.000100001
  Prefactor  = 0.000100053
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.7403
  Prefactor  = 17.5957
  Prefactor  = 27.9444
  Prefactor  = 4.53995
  Prefactor  = 36.4843
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.4814
  norm       = 0.0001
  Normalizat = 0.989272
  Prefactor  = 1.09997
 **********
 **   18 **HESSE 
 **********

 FCN=   5971.920     FROM HESSE     STATUS=OK           421 CALLS     3307 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    145.29        .53551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     32.287        51.974        .70504E-04   -1.4571    
   3  Prefactor     16.765        9.7662        .97816E-04   -1.4889    
   4  Prefactor     .10000E-03    28.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     32.579        24.709        .70174E-04   -1.4566    
   6  Prefactor     .10000E-03    5.0100        .33216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.6381        5.5518        .13638E-03   -1.5120    
   8  Prefactor     .10000E-03    3.3999        .13915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     34.666        36.255        .67997E-04   -1.4530    
  10  Prefactor     2.5750        8.0710        .25595E-03   -1.5387    
  11  Prefactor     .10000E-03    2.3340        .11417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10005E-03    650.44        .20017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.0549        .13179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.2462        .11241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     38.740        39.655        .64406E-04   -1.4462    
  16  Prefactor     17.596        8.6255        .95479E-04   -1.4869    
  17  Prefactor     27.944        40.091        .75867E-04   -1.4650    
  18  Prefactor     4.5400        18.194        .18861E-03   -1.5282    
  19  Prefactor     36.484        111.99        .66350E-04   -1.4499    
  20  Prefactor     .10000E-03    4.3187        .15661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    38.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.481        12.202        .10908E-03   -1.4973    
  23  norm          .10000E-03    5.0917        .16974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .98927        .25133        .29363E-03   -.93391    
  25  Prefactor     1.1000        .19291        .22235E-03   -.89467    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08361e-09
Minuit parameter uncertainties:
  1  0.00190561
  2  52.0469
  3  9.76711
  4  0.000194456
  5  24.717
  6  0.000170185
  7  5.55217
  8  6.80232e-06
  9  36.2776
  10  8.07444
  11  8.51886e-05
  12  0.0118573
  13  1.9662e-05
  14  4.38674e-05
  15  39.6817
  16  8.62608
  17  40.13
  18  18.1865
  19  112.643
  20  3.37823e-05
  21  1.82421e-06
  22  12.2041
  23  1.38883e-05
  24  0.251628
  25  0.193037
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.001e-04  1.186e-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.100e+00  1.930e-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.893e-01  2.516e-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: 9.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/210695/likelihoodResults_518227201_518486401_4FGL_J2209.8-5028_daily_bin1076.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) = 5971.92015179
delta logL = -7.17021612218e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5971.92015179
delta logL = -7.17017064744e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96364E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3719       1.0000          .0000       10.000    
     3 'Normalizat'    .98928       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1000       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=   5971.920     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      204 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    258.32        .90712E-02** at limit **
   2  Index         2.3223        5.1308        .50000        .29381E-06
   3  Normalizat    .98928        .31371E-02    .66385E-01    .11426E-04
   4  Prefactor     1.1000        .25021E-02    .37588E-01   -.27698E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.32227
  Normalizat = 0.989281
  Prefactor  = 1.09996
 **********
 **   18 **HESSE 
 **********

 FCN=   5971.920     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      237 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1291.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3223        8.4345        .50000       -.56515    
   3  Normalizat    .98928        .70971E-02    .29363E-03   -.93390    
   4  Prefactor     1.1000        .56677E-02    .22235E-03   -.89468    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.40271e-10
Minuit parameter uncertainties:
  1  0.000637195
  2  258.726
  3  0.00709714
  4  0.00566771
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/210695': 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) = 5971.92014461
delta logL = 6.21548679192e-09

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  6.372e-04  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.322e+00  2.587e+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:  1.100e+00  5.668e-03  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.893e-01  7.097e-03  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/210695/cmap_HighResolution_518227201_518486401_4FGL_J2209.8-5028_daily_bin1076.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.96e-03', job_status='DONE', photon_flux_upper_limit='9.02e-08', time_completed='2021-09-28 06:38:22.794477', job_id='210695', GAL2='1.10', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1632836302.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='6.22e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1076' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:38:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 210695: <4FGL_J2209.8-5028_daily_bin1076> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1076 332.474 -50.4702 518227201 518486401 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 :                                   690.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            768 sec.

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

