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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin621
RA = 332.474, Dec = -50.4702
tmin = 400291201, tmax = 400550401
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='207683', job_status='RUN', time_executed='2021-09-28 06:16:51.989852', time_epoch_executed='1632835011.99' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='621'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/207683

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/207683/ft1_4FGL_J2209.8-5028_daily_bin621.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/207683/ft2_4FGL_J2209.8-5028_daily_bin621.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/207683/ft1_4FGL_J2209.8-5028_daily_bin621.fits outfile=/scratch/kocevski/207683/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin621.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=400291201.0 tmax=400550401.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.32
user 3.10
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/207683/ft1_filtered_4FGL_J2209.8-5028_daily_bin621.fits" evtable="EVENTS" scfile=/scratch/kocevski/207683/ft2_4FGL_J2209.8-5028_daily_bin621.fits sctable="SC_DATA" outfile=/scratch/kocevski/207683/ltcube_400291201_400550401_4FGL_J2209.8-5028_daily_bin621.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/207683/ft2_4FGL_J2209.8-5028_daily_bin621.fits
.....................!
real 12.83
user 12.49
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/207683/ft1_filtered_4FGL_J2209.8-5028_daily_bin621.fits evtable="EVENTS" scfile=/scratch/kocevski/207683/ft2_4FGL_J2209.8-5028_daily_bin621.fits sctable="SC_DATA" expcube=/scratch/kocevski/207683/ltcube_400291201_400550401_4FGL_J2209.8-5028_daily_bin621.fits outfile=/scratch/kocevski/207683/expmap_400291201_400550401_4FGL_J2209.8-5028_daily_bin621.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/207683/ltcube_400291201_400550401_4FGL_J2209.8-5028_daily_bin621.fits
.....................!
real 190.61
user 186.22
sys 3.95

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/207683/ft1_filtered_4FGL_J2209.8-5028_daily_bin621.fits scfile=/scratch/kocevski/207683/ft2_4FGL_J2209.8-5028_daily_bin621.fits outfile=/scratch/kocevski/207683/cmap_400291201_400550401_4FGL_J2209.8-5028_daily_bin621.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.36
sys 0.16

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/207683/ft1_filtered_4FGL_J2209.8-5028_daily_bin621.fits evtable="EVENTS" scfile=/scratch/kocevski/207683/ft2_4FGL_J2209.8-5028_daily_bin621.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/207683/Model_4FGL_J2209.8-5028_daily_bin621.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/207683/ft1_filtered_4FGL_J2209.8-5028_daily_bin621.fits.....................!
real 47.22
user 45.85
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.686       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .32116       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .53697       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19241E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.1595       1.0000         .10000E-03   10000.    
     8 'Prefactor '    37.175       1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.918       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.9000       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5185       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.8555       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9719       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    61.424       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .21064E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    49.673       1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.049       1.0000         .10000E-03   10000.    
    23 'norm      '    4.1266       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91108       1.0000         .10000E-01   10.000    
    25 '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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6166.650     FROM MIGRAD    STATUS=CONVERGED   1052 CALLS     3413 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.139        .18142E-02** at limit **
   2  Prefactor     26.737        49.425        .77548E-04   -.14660E-05
   3  Prefactor     .33574        35.690        .37890E-02    .70274E-03
   4  Prefactor     .48691        47.759        .11097        .29052E-03
   5  Prefactor     .10000E-03    12.393        .18142E-02** at limit **
   6  Prefactor     .10001E-03    11.314        .20592E-02** at limit **
   7  norm          2.1761        5.7725        .25991E-03    .54575E-03
   8  Prefactor     37.182        18.577        .65733E-04    .19699E-03
   9  Prefactor     37.909        44.971        .65088E-04    .28296E-04
  10  Prefactor     6.8991        7.1347        .76367E-03   -.25016E-03
  11  Prefactor     1.5186        2.2429        .13994E-03   -.79206E-04
  12  Prefactor     .10000E-03    37.011        .18142E-02** at limit **
  13  norm          3.8554        4.1386        .16141E-03    .15918E-04
  14  Prefactor     4.9679        4.1082        .13696E-03   -.12493E-03
  15  Prefactor     .10000E-03    20.114        .18142E-02** at limit **
  16  Prefactor     .10000E-03    1.9654        .10726E-02** at limit **
  17  Prefactor     61.376        29.550        .51197E-04    .62398E-04
  18  Prefactor     .10000E-03    9.9093        .18142E-02** at limit **
  19  Prefactor     .10000E-03    40.534        .18142E-02** at limit **
  20  Prefactor     .10005E-03    28.746        .32435E-02** at limit **
  21  Prefactor     49.676        37.791        .56899E-04    .34766E-05
  22  Prefactor     21.040        16.745        .87303E-04   -.65111E-06
  23  norm          4.1272        5.3256        .19844E-03   -.38385E-05
  24  Normalizat    .91217        .22813        .27916E-03    .15068E-03
  25  Prefactor     1.0442        .17694        .21361E-03    .24468E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 26.7368
  Prefactor  = 0.335738
  Prefactor  = 0.486914
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  norm       = 2.17612
  Prefactor  = 37.1815
  Prefactor  = 37.909
  Prefactor  = 6.89911
  Prefactor  = 1.51858
  Prefactor  = 0.0001
  norm       = 3.85545
  Prefactor  = 4.96787
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.3764
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100053
  Prefactor  = 49.6761
  Prefactor  = 21.0402
  norm       = 4.12725
  Normalizat = 0.91217
  Prefactor  = 1.04422
 **********
 **   18 **HESSE 
 **********

 FCN=   6166.650     FROM HESSE     STATUS=OK           413 CALLS     3826 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.150        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     26.737        49.393        .31019E-05   -1.4673    
   3  Prefactor     .33574        35.540        .15156E-03   -1.5592    
   4  Prefactor     .48691        42.242        .11803       -1.5568    
   5  Prefactor     .10000E-03    12.395        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    11.434        .41184E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.1761        5.7301        .10396E-04   -1.5413    
   8  Prefactor     37.182        18.571        .13147E-04   -1.4488    
   9  Prefactor     37.909        44.942        .26035E-05   -1.4476    
  10  Prefactor     6.8991        7.1321        .30547E-04   -1.5183    
  11  Prefactor     1.5186        2.2427        .55978E-05   -1.5462    
  12  Prefactor     .10000E-03    37.011        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.8554        4.1386        .64563E-05   -1.5315    
  14  Prefactor     4.9679        4.1073        .54782E-05   -1.5262    
  15  Prefactor     .10000E-03    20.114        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.9655        .21452E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     61.376        29.541        .10239E-04   -1.4139    
  18  Prefactor     .10000E-03    9.9117        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    40.534        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10005E-03    29.046        .64870E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     49.676        37.790        .11380E-04   -1.4297    
  22  Prefactor     21.040        16.741        .34921E-05   -1.4790    
  23  norm          4.1272        5.3255        .79374E-05   -1.5302    
  24  Normalizat    .91217        .22800        .11167E-04   -.96034    
  25  Prefactor     1.0442        .17704        .42721E-04   -.91270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.7238e-09
Minuit parameter uncertainties:
  1  6.92956e-05
  2  49.4681
  3  6.91178
  4  9.07609
  5  4.22128e-05
  6  0.000727381
  7  5.73154
  8  18.574
  9  44.9825
  10  7.13295
  11  2.24279
  12  9.58965e-06
  13  4.13886
  14  4.10748
  15  9.38426e-06
  16  9.5999e-06
  17  29.5482
  18  0.000154626
  19  4.43994e-05
  20  0.00248732
  21  37.8078
  22  16.7449
  23  5.32614
  24  0.228237
  25  0.177141
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  9.590e-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:  1.044e+00  1.771e-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.122e-01  2.282e-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.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/207683/likelihoodResults_400291201_400550401_4FGL_J2209.8-5028_daily_bin621.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) = 6166.65024891
delta logL = -0.000128655069602

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6166.65012118
delta logL = -9.33602677833e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7906       1.0000          .0000       10.000    
     3 'Normalizat'    .91217       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0442       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=   6166.650     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      275 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10717E-03    9.8354        .18142E-01** at limit **
   2  Index         2.6566        6.2321        .50000        .11871E-04
   3  Normalizat    .91217        .28426E-02    .27916E-03    .61086E-06
   4  Prefactor     1.0442        .23238E-02    .21361E-03   -.12294E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000107169
  Index      = 2.65662
  Normalizat = 0.912171
  Prefactor  = 1.04422
 **********
 **   18 **HESSE 
 **********

 FCN=   6166.650     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10717E-03    112.27        .36285E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6566        5.6943        .50000       -.48779    
   3  Normalizat    .91217        .96457E-02    .11167E-04   -.96034    
   4  Prefactor     1.0442        .78854E-02    .85442E-05   -.91270    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.3598e-09
Minuit parameter uncertainties:
  1  0.0568463
  2  387.221
  3  0.00964577
  4  0.00788537
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/207683': 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) = 6166.65012093
delta logL = -6.75500814395e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.072e-04  5.685e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.657e+00  3.872e+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.044e+00  7.885e-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.122e-01  9.646e-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/207683/cmap_HighResolution_400291201_400550401_4FGL_J2209.8-5028_daily_bin621.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.50e-03', job_status='DONE', photon_flux_upper_limit='5.83e-08', time_completed='2021-09-28 06:29:29.826572', job_id='207683', GAL2='1.04', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1632835769.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='-6.76e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='621' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:29:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 207683: <4FGL_J2209.8-5028_daily_bin621> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin621> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 06:15:54 2021
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:15:55 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:15:55 2021
Terminated at Tue Sep 28 06:29:32 2021
Results reported at Tue Sep 28 06:29:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin621 332.474 -50.4702 400291201 400550401 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 :                                   753.42 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            818 sec.

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

