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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1291
RA = 332.474, Dec = -50.4702
tmin = 573955201, tmax = 574214401
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='211013', job_status='RUN', time_executed='2021-09-28 06:26:25.254181', time_epoch_executed='1632835585.25' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1291'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211013

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211013/ft1_4FGL_J2209.8-5028_daily_bin1291.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211013/ft2_4FGL_J2209.8-5028_daily_bin1291.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211013/ft1_4FGL_J2209.8-5028_daily_bin1291.fits outfile=/scratch/kocevski/211013/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1291.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=573955201.0 tmax=574214401.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.60
user 3.36
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/211013/ft2_4FGL_J2209.8-5028_daily_bin1291.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/211013/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1291.fits evtable="EVENTS" outfile="/scratch/kocevski/211013/ft1_filtered_4FGL_J2209.8-5028_daily_bin1291.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/211013/ft1_filtered_4FGL_J2209.8-5028_daily_bin1291.fits" evtable="EVENTS" scfile=/scratch/kocevski/211013/ft2_4FGL_J2209.8-5028_daily_bin1291.fits sctable="SC_DATA" outfile=/scratch/kocevski/211013/ltcube_573955201_574214401_4FGL_J2209.8-5028_daily_bin1291.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/211013/ft2_4FGL_J2209.8-5028_daily_bin1291.fits
.....................!
real 12.09
user 11.71
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211013/ft1_filtered_4FGL_J2209.8-5028_daily_bin1291.fits evtable="EVENTS" scfile=/scratch/kocevski/211013/ft2_4FGL_J2209.8-5028_daily_bin1291.fits sctable="SC_DATA" expcube=/scratch/kocevski/211013/ltcube_573955201_574214401_4FGL_J2209.8-5028_daily_bin1291.fits outfile=/scratch/kocevski/211013/expmap_573955201_574214401_4FGL_J2209.8-5028_daily_bin1291.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/211013/ltcube_573955201_574214401_4FGL_J2209.8-5028_daily_bin1291.fits
.....................!
real 190.96
user 185.07
sys 5.53

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/211013/ft1_filtered_4FGL_J2209.8-5028_daily_bin1291.fits scfile=/scratch/kocevski/211013/ft2_4FGL_J2209.8-5028_daily_bin1291.fits outfile=/scratch/kocevski/211013/cmap_573955201_574214401_4FGL_J2209.8-5028_daily_bin1291.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.55
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211013/ft1_filtered_4FGL_J2209.8-5028_daily_bin1291.fits scfile=/scratch/kocevski/211013/ft2_4FGL_J2209.8-5028_daily_bin1291.fits outfile=/scratch/kocevski/211013/cmap_HighResolution_573955201_574214401_4FGL_J2209.8-5028_daily_bin1291.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/211013/ft1_filtered_4FGL_J2209.8-5028_daily_bin1291.fits evtable="EVENTS" scfile=/scratch/kocevski/211013/ft2_4FGL_J2209.8-5028_daily_bin1291.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211013/Model_4FGL_J2209.8-5028_daily_bin1291.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/211013/ft1_filtered_4FGL_J2209.8-5028_daily_bin1291.fits....................!
real 43.40
user 42.09
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.196       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.225       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8029       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.804       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7292       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.121       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .82298E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    215.72       1.0000         .10000E-03   10000.    
    13 'norm      '    8.4204       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .64958       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.441       1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.671       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.5507       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .98700       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90290       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=   5446.100     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2884 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.192        20.523        .11208E-05    .10849E-04
   2  Prefactor     12.261        46.926       -.10075E-04    .51110E-05
   3  Prefactor     3.8026        4.9831        .25127E-07   -.80242E-05
   4  Prefactor     .10000E-03    12.657        .25179E-06** at limit **
   5  Prefactor     .10000E-03    12.642        .76502E-06** at limit **
   6  Prefactor     .10000E-03    1.9920        .10265E-06** at limit **
   7  norm          11.804        5.1088       -.12418E-06   -.22917E-05
   8  Prefactor     1.7287        12.141        .11536E-04   -.60250E-04
   9  Prefactor     18.118        37.719        .91789E-06   -.23226E-04
  10  Prefactor     .10000E-03    7.9274        .19310E-05** at limit **
  11  Prefactor     .10000E-03    1.8828        .21049E-06** at limit **
  12  Prefactor     215.77        138.49       -.48881E-05   -.69492E-04
  13  norm          8.4208        6.5055       -.18147E-06   -.14482E-04
  14  Prefactor     .64930        3.8723        .35508E-06   -.63331E-04
  15  Prefactor     .10000E-03    29.514        .69595E-06** at limit **
  16  Prefactor     11.441        7.3965        .35725E-06   -.21303E-04
  17  Prefactor     30.675        30.888       -.82856E-06   -.50680E-04
  18  Prefactor     .10000E-03    12.520        .66796E-06** at limit **
  19  Prefactor     .10000E-03    23.580       -.11159E-05** at limit **
  20  Prefactor     .10000E-03    4.5519       -.13153E-06** at limit **
  21  Prefactor     .10000E-03    10.223       -.11142E-05** at limit **
  22  Prefactor     .10000E-03    7.0605       -.23577E-06** at limit **
  23  norm          7.5507        7.5695       -.11237E-08    .26660E-05
  24  Normalizat    .98693        .20152        .56505E-06   -.11803E-03
  25  Prefactor     .90297        .15442       -.48465E-06   -.10701E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1915
  Prefactor  = 12.261
  Prefactor  = 3.80264
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.8044
  Prefactor  = 1.72865
  Prefactor  = 18.1179
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 215.768
  norm       = 8.42081
  Prefactor  = 0.649296
  Prefactor  = 0.0001
  Prefactor  = 11.4414
  Prefactor  = 30.6751
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.55069
  Normalizat = 0.98693
  Prefactor  = 0.902973
 **********
 **   18 **HESSE 
 **********

 FCN=   5446.100     FROM HESSE     STATUS=OK           429 CALLS     3313 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.192        20.538        .12548E-03   -1.5069    
   2  Prefactor     12.261        46.765        .11457E-03   -1.5008    
   3  Prefactor     3.8026        4.9752        .18293E-03   -1.5318    
   4  Prefactor     .10000E-03    12.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.0247        .10169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.804        5.1090        .10653E-03   -1.5021    
   8  Prefactor     1.7287        12.137        .15964E-02   -1.5445    
   9  Prefactor     18.118        37.704        .94086E-04   -1.4856    
  10  Prefactor     .10000E-03    8.0603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.780        .19355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     215.77        138.43        .13766E-03   -1.2759    
  13  norm          8.4208        6.5053        .69075E-03   -1.5128    
  14  Prefactor     .64930        3.9489        .27563E-03   -1.5547    
  15  Prefactor     .10000E-03    29.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.441        7.4019        .59219E-03   -1.5031    
  17  Prefactor     30.675        31.027        .72347E-04   -1.4600    
  18  Prefactor     .10000E-03    12.822        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.5865        .15376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.0732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.5507        7.5711        .14595E-03   -1.5158    
  24  Normalizat    .98693        .23540        .26225E-03   -.93470    
  25  Prefactor     .90297        .18144        .21672E-03   -.96037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12748e-10
Minuit parameter uncertainties:
  1  20.5525
  2  46.905
  3  4.97576
  4  1.891e-05
  5  6.85238e-05
  6  6.22435e-06
  7  5.10924
  8  9.16314
  9  37.7535
  10  0.000180701
  11  5.60663e-05
  12  138.64
  13  6.5058
  14  3.20259
  15  3.81068e-05
  16  7.40252
  17  31.0434
  18  4.21836e-05
  19  1.91167e-05
  20  1.10835e-05
  21  8.37267e-06
  22  7.23996e-06
  23  7.57207
  24  0.235649
  25  0.181559
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  2.158e+02  1.386e+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:  9.030e-01  1.816e-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.869e-01  2.356e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.65
Ra Dec: 332.474 -50.470
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 7.59e-08 +/- 4.87e-08
Energy Flux (Fixed Index): 2.58e-05 +/- 1.66e-05

TS (Fixed Index): 3.65
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 1.71e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.32e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/211013/likelihoodResults_573955201_574214401_4FGL_J2209.8-5028_daily_bin1291.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): 0
logL (Free Index) = 5445.28614934
delta logL = 0.813633224599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5445.27076183
delta logL = 0.829020740306

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    62.789       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2067       1.0000          .0000       10.000    
     3 'Normalizat'    .93072       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93324       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=   5445.271     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      310 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     62.794        178.83        .50641E-04    .39736E-04
   2  Index         3.2068        1.3741        .33743E-02    .75050E-04
   3  Normalizat    .92987        .23030        .26890E-03    .83289E-04
   4  Prefactor     .93395        .18042        .21344E-03   -.60881E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 62.7939
  Index      = 3.2068
  Normalizat = 0.929871
  Prefactor  = 0.933953
 **********
 **   18 **HESSE 
 **********

 FCN=   5445.271     FROM HESSE     STATUS=OK            25 CALLS      335 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     62.794        101.26        .20256E-05   -1.4121    
   2  Index         3.2068        .78038        .13497E-03   -.36681    
   3  Normalizat    .92987        .22750        .10756E-04   -.95418    
   4  Prefactor     .93395        .17795        .85376E-05   -.94965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.86221e-11
Minuit parameter uncertainties:
  1  101.541
  2  0.784063
  3  0.22774
  4  0.178061
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211013': 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) = 5445.27075347
delta logL = 0.829029092814

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  6.279e+01  1.015e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  3.207e+00  7.841e-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.340e-01  1.781e-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.299e-01  2.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.48
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 3.21 +/- 0.78
Photon Flux (Free Index): 1.21e-07 +/- 6.66e-08
Energy Flux (Free Index): 2.21e-05 +/- 1.20e-05

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/211013/cmap_HighResolution_573955201_574214401_4FGL_J2209.8-5028_daily_bin1291.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.32e-02', comment='SUCCESS', photon_flux='7.59e-08', energy_flux2='2.21e-05', photon_flux_error='4.87e-08', dlogl='8.29e-01', energy_flux='2.58e-05', photon_flux2='1.21e-07', job_status='DONE', time_completed='2021-09-28 06:37:37.877994', photon_index_error2='0.78', photon_index2='3.21', ts='3.65', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.71e-07', energy_flux_error2='1.20e-05', EG='0.99', time_epoch_completed='1632836257.88', return_code='0', job_id='211013', GAL2='0.93', EG2='0.93', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='6.66e-08', ts2='5.48', photon_index='2.37' WHERE bin_id='1291' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:37:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 211013: <4FGL_J2209.8-5028_daily_bin1291> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1291 332.474 -50.4702 573955201 574214401 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 :                                   665.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            695 sec.

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

