/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 18 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 = 7359
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2209.8-5028_daily_bin274
RA = 332.474, Dec = -50.4702
tmin = 310348801, tmax = 310608001
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='206093', job_status='RUN', time_executed='2021-09-28 06:11:31.672539', time_epoch_executed='1632834691.67' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='274'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/206093

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/206093/ft1_4FGL_J2209.8-5028_daily_bin274.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/206093/ft2_4FGL_J2209.8-5028_daily_bin274.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/206093/ft1_4FGL_J2209.8-5028_daily_bin274.fits outfile=/scratch/kocevski/206093/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin274.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=310348801.0 tmax=310608001.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.46
user 3.24
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/206093/ft2_4FGL_J2209.8-5028_daily_bin274.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/206093/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin274.fits evtable="EVENTS" outfile="/scratch/kocevski/206093/ft1_filtered_4FGL_J2209.8-5028_daily_bin274.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.51
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/206093/ft1_filtered_4FGL_J2209.8-5028_daily_bin274.fits" evtable="EVENTS" scfile=/scratch/kocevski/206093/ft2_4FGL_J2209.8-5028_daily_bin274.fits sctable="SC_DATA" outfile=/scratch/kocevski/206093/ltcube_310348801_310608001_4FGL_J2209.8-5028_daily_bin274.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/206093/ft2_4FGL_J2209.8-5028_daily_bin274.fits
.....................!
real 11.86
user 11.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/206093/ft1_filtered_4FGL_J2209.8-5028_daily_bin274.fits evtable="EVENTS" scfile=/scratch/kocevski/206093/ft2_4FGL_J2209.8-5028_daily_bin274.fits sctable="SC_DATA" expcube=/scratch/kocevski/206093/ltcube_310348801_310608001_4FGL_J2209.8-5028_daily_bin274.fits outfile=/scratch/kocevski/206093/expmap_310348801_310608001_4FGL_J2209.8-5028_daily_bin274.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/206093/ltcube_310348801_310608001_4FGL_J2209.8-5028_daily_bin274.fits
.....................!
real 190.69
user 186.20
sys 4.17

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/206093/ft1_filtered_4FGL_J2209.8-5028_daily_bin274.fits scfile=/scratch/kocevski/206093/ft2_4FGL_J2209.8-5028_daily_bin274.fits outfile=/scratch/kocevski/206093/cmap_310348801_310608001_4FGL_J2209.8-5028_daily_bin274.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.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/206093/ft1_filtered_4FGL_J2209.8-5028_daily_bin274.fits evtable="EVENTS" scfile=/scratch/kocevski/206093/ft2_4FGL_J2209.8-5028_daily_bin274.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/206093/Model_4FGL_J2209.8-5028_daily_bin274.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/206093/ft1_filtered_4FGL_J2209.8-5028_daily_bin274.fits.....................!
real 56.20
user 54.88
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.341       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.5122       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.3101       1.0000         .10000E-03   10000.    
     4 'Prefactor '    46.678       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6714       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6832       1.0000         .10000E-03   10000.    
     7 'norm      '    2.6839       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1001       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.549       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.0717       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7463       1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.489       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.790       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.6889       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.453       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    88.305       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .17739E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    56.235       1.0000         .10000E-03   10000.    
    23 'norm      '    8.9331       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0594       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94366       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=   7623.669     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2942 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.316        22.413        .71051E-05    .27081E-03
   2  Prefactor     9.5245        61.723       -.51764E-05   -.58187E-04
   3  Prefactor     6.3083        6.9418        .13066E-05   -.15020E-03
   4  Prefactor     46.686        24.158       -.21059E-05   -.13869E-03
   5  Prefactor     4.6671        16.345        .21921E-05    .39677E-04
   6  Prefactor     2.6832        3.6804        .27823E-06   -.74608E-04
   7  norm          2.6838        3.2662        .10283E-05   -.11868E-03
   8  Prefactor     1.0981        17.456        .29794E-04   -.34629E-03
   9  Prefactor     16.552        33.751       -.10640E-05   -.49543E-04
  10  Prefactor     9.0559        10.778        .35169E-05    .64783E-04
  11  Prefactor     3.7453        3.9849        .40946E-06   -.30746E-04
  12  Prefactor     33.603        111.18       -.29345E-04   -.16397E-03
  13  norm          .10000E-03    2.4670        .17752E-06** at limit **
  14  Prefactor     .10000E-03    1.3352        .31414E-06** at limit **
  15  Prefactor     15.791        18.986       -.25772E-06   -.45571E-04
  16  Prefactor     9.6879        5.6719        .21682E-06   -.17696E-03
  17  Prefactor     13.445        25.245        .16375E-05    .82103E-04
  18  Prefactor     .10000E-03    5.0384       -.13967E-05** at limit **
  19  Prefactor     88.241        74.053        .90144E-05    .25453E-03
  20  Prefactor     .10001E-03    3.4025        .12752E-05** at limit **
  21  Prefactor     .10000E-03    8.4557        .41297E-07** at limit **
  22  Prefactor     56.232        26.509        .47629E-06    .42840E-04
  23  norm          8.9332        9.4358        .24717E-07   -.38720E-05
  24  Normalizat    1.0597        .18237        .54355E-06    .44754E-04
  25  Prefactor     .94349        .13697       -.27184E-05   -.17519E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.3161
  Prefactor  = 9.52445
  Prefactor  = 6.30826
  Prefactor  = 46.6859
  Prefactor  = 4.66709
  Prefactor  = 2.68322
  norm       = 2.68376
  Prefactor  = 1.09809
  Prefactor  = 16.5519
  Prefactor  = 9.05593
  Prefactor  = 3.74532
  Prefactor  = 33.603
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.7908
  Prefactor  = 9.68788
  Prefactor  = 13.4454
  Prefactor  = 0.000100001
  Prefactor  = 88.2413
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 56.2322
  norm       = 8.93317
  Normalizat = 1.05967
  Prefactor  = 0.943488
 **********
 **   18 **HESSE 
 **********

 FCN=   7623.669     FROM HESSE     STATUS=OK           437 CALLS     3379 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.316        22.429        .11403E-03   -1.5006    
   2  Prefactor     9.5245        61.498        .12994E-03   -1.5091    
   3  Prefactor     6.3083        6.9385        .79896E-03   -1.5206    
   4  Prefactor     46.686        24.134        .58688E-04   -1.4340    
   5  Prefactor     4.6671        16.307        .18620E-03   -1.5276    
   6  Prefactor     2.6832        3.6633        .18594E-03   -1.5380    
   7  norm          2.6838        3.2445        .82040E-03   -1.5380    
   8  Prefactor     1.0981        17.634        .22660E-02   -1.5498    
   9  Prefactor     16.552        33.724        .98454E-04   -1.4894    
  10  Prefactor     9.0559        10.766        .13307E-03   -1.5106    
  11  Prefactor     3.7453        3.9730        .16882E-03   -1.5321    
  12  Prefactor     33.603        111.45        .69245E-04   -1.4548    
  13  norm          .10000E-03    2.4720        .13394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.5196        .19538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.791        18.977        .10079E-03   -1.4913    
  16  Prefactor     9.6879        5.6763        .64370E-03   -1.5085    
  17  Prefactor     13.445        25.382        .10920E-03   -1.4974    
  18  Prefactor     .10000E-03    5.0692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     88.241        74.090        .21378E-03   -1.3826    
  20  Prefactor     .10001E-03    18.151        .30895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.4560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     56.232        26.681        .53493E-04   -1.4207    
  23  norm          8.9332        9.4320        .13410E-03   -1.5110    
  24  Normalizat    1.0597        .21374        .27109E-03   -.91057    
  25  Prefactor     .94349        .16059        .22699E-03   -.94638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48415e-09
Minuit parameter uncertainties:
  1  22.4439
  2  48.4767
  3  6.93942
  4  24.1394
  5  16.3221
  6  3.66357
  7  3.24467
  8  8.80352
  9  33.7632
  10  10.7686
  11  3.97333
  12  112.154
  13  1.55634e-05
  14  1.29721e-05
  15  18.9841
  16  5.6766
  17  25.4025
  18  0.00016698
  19  74.1674
  20  0.000690646
  21  7.62245e-06
  22  26.6869
  23  9.43358
  24  0.213916
  25  0.160671
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  3.360e+01  1.122e+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.435e-01  1.607e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  1.060e+00  2.139e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.17
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 8.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/206093/likelihoodResults_310348801_310608001_4FGL_J2209.8-5028_daily_bin274.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) = 7623.57800045
delta logL = 0.0908258917261

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7623.57603213
delta logL = 0.0927942118906

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.411       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0371       1.0000          .0000       10.000    
     3 'Normalizat'    1.0477       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94902       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7623.576     FROM MIGRAD    STATUS=FAILED        95 CALLS      308 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.477        301.98        .98866E-04   -.20468E-04
   2  Index         3.0364        3.5199        .95794E-02    .46757E-03
   3  Normalizat    1.0476        .19764        .27239E-03   -.21357E-03
   4  Prefactor     .94911        .15605        .22635E-03    .23638E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7623.576     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      394 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.477        301.98        .71557E-03   -1.4896    
   2  Index         3.0364        3.5199        .16159E-02   -.40359    
   3  Normalizat    1.0476        .19764        .34544E-03   -.91452    
   4  Prefactor     .94911        .15605        .28110E-03   -.94446    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7623.576     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      423 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.478        62.279        .39547E-05    .36797E-04
   2  Index         3.0364        1.7223        .19159E-02   -.16900E-04
   3  Normalizat    1.0476        .19652        .10895E-04   -.71371E-04
   4  Prefactor     .94911        .15481        .45271E-04    .94725E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.4781
  Index      = 3.03638
  Normalizat = 1.04762
  Prefactor  = 0.949109
 **********
 **   18 **HESSE 
 **********

 FCN=   7623.576     FROM HESSE     STATUS=OK            23 CALLS      446 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.478        57.934        .79093E-06   -1.4896    
   2  Index         3.0364        1.6048        .76635E-04   -.40359    
   3  Normalizat    1.0476        .19655        .21791E-05   -.91452    
   4  Prefactor     .94911        .15482        .90541E-05   -.94446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00666e-10
Minuit parameter uncertainties:
  1  58.1332
  2  1.63935
  3  0.196684
  4  0.154887
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/206093': 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) = 7623.5760308
delta logL = 0.092795541158

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.648e+01  5.813e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  3.036e+00  1.639e+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:  9.491e-01  1.549e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  1.048e+00  1.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.17
Ra Dec: 332.474 -50.470

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/206093/cmap_HighResolution_310348801_310608001_4FGL_J2209.8-5028_daily_bin274.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.75e-03', job_status='DONE', photon_flux_upper_limit='8.76e-08', time_completed='2021-09-28 06:25:34.611644', job_id='206093', GAL2='0.95', fit_tolerance='1e-08', EG2='1.05', EG='1.06', time_epoch_completed='1632835534.61', return_code2='0', ts='0.17', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='9.28e-02', ts2='0.37', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='274' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:25:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 206093: <4FGL_J2209.8-5028_daily_bin274> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin274> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 06:10:52 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:10:53 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:10:53 2021
Terminated at Tue Sep 28 06:25:35 2021
Results reported at Tue Sep 28 06:25:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin274 332.474 -50.4702 310348801 310608001 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 :                                   836.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            883 sec.

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

