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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1217
RA = 332.474, Dec = -50.4702
tmin = 554774401, tmax = 555033601
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='210911', job_status='RUN', time_executed='2021-09-28 06:27:30.045151', time_epoch_executed='1632835650.05' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1217'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/210911

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/210911/ft1_4FGL_J2209.8-5028_daily_bin1217.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/210911/ft2_4FGL_J2209.8-5028_daily_bin1217.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/210911/ft1_4FGL_J2209.8-5028_daily_bin1217.fits outfile=/scratch/kocevski/210911/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1217.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=554774401.0 tmax=555033601.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.74
user 3.47
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/210911/ft1_filtered_4FGL_J2209.8-5028_daily_bin1217.fits" evtable="EVENTS" scfile=/scratch/kocevski/210911/ft2_4FGL_J2209.8-5028_daily_bin1217.fits sctable="SC_DATA" outfile=/scratch/kocevski/210911/ltcube_554774401_555033601_4FGL_J2209.8-5028_daily_bin1217.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/210911/ft2_4FGL_J2209.8-5028_daily_bin1217.fits
.....................!
real 11.66
user 11.33
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/210911/ft1_filtered_4FGL_J2209.8-5028_daily_bin1217.fits evtable="EVENTS" scfile=/scratch/kocevski/210911/ft2_4FGL_J2209.8-5028_daily_bin1217.fits sctable="SC_DATA" expcube=/scratch/kocevski/210911/ltcube_554774401_555033601_4FGL_J2209.8-5028_daily_bin1217.fits outfile=/scratch/kocevski/210911/expmap_554774401_555033601_4FGL_J2209.8-5028_daily_bin1217.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/210911/ltcube_554774401_555033601_4FGL_J2209.8-5028_daily_bin1217.fits
.....................!
real 191.64
user 186.84
sys 4.50

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/210911/ft1_filtered_4FGL_J2209.8-5028_daily_bin1217.fits scfile=/scratch/kocevski/210911/ft2_4FGL_J2209.8-5028_daily_bin1217.fits outfile=/scratch/kocevski/210911/cmap_554774401_555033601_4FGL_J2209.8-5028_daily_bin1217.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/210911/ft1_filtered_4FGL_J2209.8-5028_daily_bin1217.fits scfile=/scratch/kocevski/210911/ft2_4FGL_J2209.8-5028_daily_bin1217.fits outfile=/scratch/kocevski/210911/cmap_HighResolution_554774401_555033601_4FGL_J2209.8-5028_daily_bin1217.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/210911/ft1_filtered_4FGL_J2209.8-5028_daily_bin1217.fits evtable="EVENTS" scfile=/scratch/kocevski/210911/ft2_4FGL_J2209.8-5028_daily_bin1217.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/210911/Model_4FGL_J2209.8-5028_daily_bin1217.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/210911/ft1_filtered_4FGL_J2209.8-5028_daily_bin1217.fits.....................!
real 29.49
user 28.27
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10350E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    49.956       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0216       1.0000         .10000E-03   10000.    
     7 'norm      '    2.3550       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.6385       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.783       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4300       1.0000         .10000E-03   10000.    
    12 'Prefactor '    107.34       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8985       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.480       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.995       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.754       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    11.091       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .32171       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.5109       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=   3021.476     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2890 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.294       -.17940E-06** at limit **
   2  Prefactor     49.949        68.979       -.18031E-06   -.13148E-04
   3  Prefactor     .10000E-03    7.1471       -.75510E-07** at limit **
   4  Prefactor     .10000E-03    80.765        .26657E-06** at limit **
   5  Prefactor     .10000E-03    13.362       -.74724E-07** at limit **
   6  Prefactor     2.0237        5.7358        .35198E-06   -.46546E-04
   7  norm          2.3542        4.2476        .17605E-06   -.20654E-04
   8  Prefactor     8.6384        10.836        .14344E-07   -.63285E-05
   9  Prefactor     11.438        78.341       -.69788E-06   -.24662E-04
  10  Prefactor     .10000E-03    21.683        .54165E-05** at limit **
  11  Prefactor     5.4336        6.8709        .11713E-07   -.11185E-03
  12  Prefactor     107.48        178.33       -.21821E-05   -.20144E-04
  13  norm          .10000E-03    4.4709        .64354E-07** at limit **
  14  Prefactor     5.9023        8.3106        .71966E-07   -.43466E-04
  15  Prefactor     .10000E-03    81.916        .45066E-07** at limit **
  16  Prefactor     .10000E-03    2.8654        .53450E-07** at limit **
  17  Prefactor     39.478        39.263       -.34862E-06   -.18042E-04
  18  Prefactor     18.998        17.690       -.15226E-06   -.12035E-04
  19  Prefactor     .10000E-03    74.830       -.34783E-06** at limit **
  20  Prefactor     16.755        14.808       -.64506E-07   -.14963E-04
  21  Prefactor     .10000E-03    31.498       -.39003E-07** at limit **
  22  Prefactor     .10000E-03    8.5324       -.35380E-07** at limit **
  23  norm          11.091        11.078       -.40801E-07    .35773E-06
  24  Normalizat    .32109        .34695        .37482E-05   -.22905E-04
  25  Prefactor     1.5114        .26904       -.13037E-05   -.68843E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 49.9493
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.02375
  norm       = 2.35415
  Prefactor  = 8.63842
  Prefactor  = 11.4383
  Prefactor  = 0.0001
  Prefactor  = 5.43355
  Prefactor  = 107.48
  norm       = 0.0001
  Prefactor  = 5.9023
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.478
  Prefactor  = 18.9981
  Prefactor  = 0.0001
  Prefactor  = 16.7554
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.0908
  Normalizat = 0.321089
  Prefactor  = 1.51136
 **********
 **   18 **HESSE 
 **********

 FCN=   3021.476     FROM HESSE     STATUS=OK           427 CALLS     3317 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    46.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     49.949        69.056        .56738E-04   -1.4293    
   3  Prefactor     .10000E-03    7.1775        .14350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    81.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0237        5.6629        .20901E-03   -1.5423    
   7  norm          2.3542        4.2213        .14760E-03   -1.5401    
   8  Prefactor     8.6384        10.835        .13638E-03   -1.5120    
   9  Prefactor     11.438        78.285        .11670E-03   -1.5031    
  10  Prefactor     .10000E-03    21.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.4336        6.8159        .14847E-03   -1.5242    
  12  Prefactor     107.48        179.53        .19409E-03   -1.3631    
  13  norm          .10000E-03    4.4717        .11352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.9023        8.1708        .16535E-03   -1.5222    
  15  Prefactor     .10000E-03    82.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.8680        .90855E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     39.478        39.153        .63792E-04   -1.4451    
  18  Prefactor     18.998        17.664        .91897E-04   -1.4836    
  19  Prefactor     .10000E-03    74.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.755        14.772        .97849E-04   -1.4889    
  21  Prefactor     .10000E-03    31.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.5389        .15683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          11.091        11.080        .12030E-03   -1.5042    
  24  Normalizat    .32109        .32307        .45741E-03   -1.2160    
  25  Prefactor     1.5114        .25845        .18586E-03   -.77222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12403e-11
Minuit parameter uncertainties:
  1  2.59761e-05
  2  69.1667
  3  1.61047e-06
  4  9.52137e-05
  5  2.60161e-06
  6  5.66444
  7  4.22186
  8  10.8374
  9  59.9609
  10  3.3794e-05
  11  6.81688
  12  180.445
  13  4.25758e-08
  14  8.17238
  15  0.000120403
  16  9.87545e-07
  17  39.178
  18  17.6693
  19  0.000279365
  20  14.7751
  21  7.84779e-06
  22  2.1036e-06
  23  11.0822
  24  0.324962
  25  0.258679
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.075e+02  1.804e+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.511e+00  2.587e-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:  3.211e-01  3.250e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/210911/likelihoodResults_554774401_555033601_4FGL_J2209.8-5028_daily_bin1217.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) = 3021.45027904
delta logL = 0.0255354827673

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3021.43405454
delta logL = 0.0417599904054

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    75.571       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6503       1.0000          .0000       10.000    
     3 'Normalizat'    .31332       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5150       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=   3021.434     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      267 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     75.577        191.33        .46189E-04    .46519E-05
   2  Index         2.6503        1.1341        .65488E-02   -.11679E-04
   3  Normalizat    .31379        .30355        .46251E-03    .50033E-04
   4  Prefactor     1.5146        .25388        .18566E-03    .12090E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 75.5767
  Index      = 2.65031
  Normalizat = 0.313792
  Prefactor  = 1.51461
 **********
 **   18 **HESSE 
 **********

 FCN=   3021.434     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     75.577        168.45        .92378E-05   -1.3967    
   2  Index         2.6503        .99872        .26195E-03   -.48922    
   3  Normalizat    .31379        .30346        .18500E-04   -1.2202    
   4  Prefactor     1.5146        .25370        .37133E-04   -.77131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.38259e-11
Minuit parameter uncertainties:
  1  169.53
  2  1.00744
  3  0.305062
  4  0.253915
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/210911': 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) = 3021.43405324
delta logL = 0.0417612888969

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  7.558e+01  1.695e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.650e+00  1.007e+00  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.515e+00  2.539e-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:  3.138e-01  3.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.49
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/210911/cmap_HighResolution_554774401_555033601_4FGL_J2209.8-5028_daily_bin1217.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-02', job_status='DONE', photon_flux_upper_limit='1.82e-07', time_completed='2021-09-28 06:36:10.203356', job_id='210911', GAL2='1.51', fit_tolerance='1e-08', EG2='0.31', EG='0.32', time_epoch_completed='1632836170.2', return_code2='0', ts='0.49', comment='SUCCESS', return_code='0', GAL='1.51', dlogl='4.18e-02', ts2='0.57', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1217' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:36:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 210911: <4FGL_J2209.8-5028_daily_bin1217> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1217 332.474 -50.4702 554774401 555033601 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 :                                   509.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   628 sec.
    Turnaround time :                            616 sec.

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

