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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin327
RA = 332.474, Dec = -50.4702
tmin = 324086401, tmax = 324345601
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='206174', job_status='RUN', time_executed='2021-09-28 06:11:14.239523', time_epoch_executed='1632834674.24' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='327'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/206174

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/206174/ft1_4FGL_J2209.8-5028_daily_bin327.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/206174/ft2_4FGL_J2209.8-5028_daily_bin327.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/206174/ft1_4FGL_J2209.8-5028_daily_bin327.fits outfile=/scratch/kocevski/206174/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin327.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=324086401.0 tmax=324345601.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 4.36
user 4.10
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/206174/ft1_filtered_4FGL_J2209.8-5028_daily_bin327.fits" evtable="EVENTS" scfile=/scratch/kocevski/206174/ft2_4FGL_J2209.8-5028_daily_bin327.fits sctable="SC_DATA" outfile=/scratch/kocevski/206174/ltcube_324086401_324345601_4FGL_J2209.8-5028_daily_bin327.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/206174/ft2_4FGL_J2209.8-5028_daily_bin327.fits
.....................!
real 15.08
user 14.66
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/206174/ft1_filtered_4FGL_J2209.8-5028_daily_bin327.fits evtable="EVENTS" scfile=/scratch/kocevski/206174/ft2_4FGL_J2209.8-5028_daily_bin327.fits sctable="SC_DATA" expcube=/scratch/kocevski/206174/ltcube_324086401_324345601_4FGL_J2209.8-5028_daily_bin327.fits outfile=/scratch/kocevski/206174/expmap_324086401_324345601_4FGL_J2209.8-5028_daily_bin327.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/206174/ltcube_324086401_324345601_4FGL_J2209.8-5028_daily_bin327.fits
.....................!
real 194.07
user 188.63
sys 5.07

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/206174/ft1_filtered_4FGL_J2209.8-5028_daily_bin327.fits scfile=/scratch/kocevski/206174/ft2_4FGL_J2209.8-5028_daily_bin327.fits outfile=/scratch/kocevski/206174/cmap_324086401_324345601_4FGL_J2209.8-5028_daily_bin327.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/206174/ft1_filtered_4FGL_J2209.8-5028_daily_bin327.fits scfile=/scratch/kocevski/206174/ft2_4FGL_J2209.8-5028_daily_bin327.fits outfile=/scratch/kocevski/206174/cmap_HighResolution_324086401_324345601_4FGL_J2209.8-5028_daily_bin327.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.55
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/206174/ft1_filtered_4FGL_J2209.8-5028_daily_bin327.fits evtable="EVENTS" scfile=/scratch/kocevski/206174/ft2_4FGL_J2209.8-5028_daily_bin327.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/206174/Model_4FGL_J2209.8-5028_daily_bin327.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/206174/ft1_filtered_4FGL_J2209.8-5028_daily_bin327.fits.....................!
real 55.47
user 53.98
sys 1.38

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.634       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.005       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12456E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10583E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.128       1.0000         .10000E-03   10000.    
     7 'norm      '    .54043E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.4650       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.069       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11918E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0029       1.0000         .10000E-03   10000.    
    12 'Prefactor '    113.20       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.5196       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .17265E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.8633       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.4819       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    32.699       1.0000         .10000E-03   10000.    
    23 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2585       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89372       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=   7232.564     FROM MIGRAD    STATUS=CONVERGED   1080 CALLS     3842 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.636        22.339        .79120E-04   -.45693E-04
   2  Prefactor     .10000E-03    14.568        .18142E-02** at limit **
   3  Prefactor     26.005        9.1277        .78556E-04   -.45691E-03
   4  Prefactor     .10002E-03    18.601        .10166    ** at limit **
   5  Prefactor     .10000E-03    18.118        .18142E-02** at limit **
   6  Prefactor     11.130        5.3935        .12010E-03   -.22170E-03
   7  norm          .10009E-03    15.929        .22595E-02** at limit **
   8  Prefactor     8.4611        10.504        .13778E-03   -.32419E-03
   9  Prefactor     26.045        30.094        .78460E-04    .12751E-04
  10  Prefactor     .10000E-03    4.5306        .17612E-02** at limit **
  11  Prefactor     2.0022        3.3491        .19315E-03   -.66776E-03
  12  Prefactor     113.28        107.57        .18905E-03    .61218E-04
  13  norm          .10000E-03    4.0811        .16746E-02** at limit **
  14  Prefactor     .10000E-03    .75517        .71932E-03** at limit **
  15  Prefactor     .10000E-03    9.4610        .18142E-02** at limit **
  16  Prefactor     7.5186        5.8414        .14625E-03    .23600E-03
  17  Prefactor     .11417E-03    40.561        .11164    ** at limit **
  18  Prefactor     7.8615        12.610        .14299E-03    .30808E-03
  19  Prefactor     .10000E-03    29.389        .18142E-02** at limit **
  20  Prefactor     2.4819        4.6035        .24251E-03   -.47152E-03
  21  Prefactor     .10000E-03    10.223        .18142E-02** at limit **
  22  Prefactor     32.704        17.754        .70073E-04   -.21578E-04
  23  norm          .10000E-03    2.7051        .13658E-02** at limit **
  24  Normalizat    1.2584        .23134        .26209E-03   -.24393E-03
  25  Prefactor     .89381        .17452        .24261E-03   -.20993E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.6364
  Prefactor  = 0.0001
  Prefactor  = 26.0046
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  Prefactor  = 11.1301
  norm       = 0.000100093
  Prefactor  = 8.46109
  Prefactor  = 26.0453
  Prefactor  = 0.000100001
  Prefactor  = 2.00219
  Prefactor  = 113.276
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.51865
  Prefactor  = 0.000114173
  Prefactor  = 7.86146
  Prefactor  = 0.0001
  Prefactor  = 2.48192
  Prefactor  = 0.0001
  Prefactor  = 32.7043
  norm       = 0.0001
  Normalizat = 1.2584
  Prefactor  = 0.893811
 **********
 **   18 **HESSE 
 **********

 FCN=   7232.564     FROM HESSE     STATUS=OK           421 CALLS     4263 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.636        22.340        .31648E-05   -1.4695    
   2  Prefactor     .10000E-03    14.569        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.005        9.1281        .15711E-04   -1.4688    
   4  Prefactor     .10002E-03    17.868        .10467       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.123        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.130        5.3934        .48039E-05   -1.5041    
   7  norm          .10009E-03    16.108        .45189E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.4611        10.503        .55113E-05   -1.5126    
   9  Prefactor     26.045        30.096        .31384E-05   -1.4687    
  10  Prefactor     .10000E-03    4.5313        .35224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.0022        3.3488        .77260E-05   -1.5425    
  12  Prefactor     113.28        107.56        .75620E-05   -1.3575    
  13  norm          .10000E-03    4.0816        .33492E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .75520        .14386E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.4611        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.5186        5.8406        .58500E-05   -1.5159    
  17  Prefactor     .11417E-03    39.773        .11287       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.8615        12.602        .57197E-05   -1.5147    
  19  Prefactor     .10000E-03    29.389        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.4819        4.6034        .97003E-05   -1.5393    
  21  Prefactor     .10000E-03    10.223        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     32.704        17.753        .28029E-05   -1.4564    
  23  norm          .10000E-03    2.7051        .27315E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2584        .23155        .52417E-04   -.84817    
  25  Prefactor     .89381        .17467        .97045E-05   -.96358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.67749e-09
Minuit parameter uncertainties:
  1  22.3474
  2  6.26698e-06
  3  9.12856
  4  0.00119799
  5  0.000126307
  6  5.39367
  7  0.00245249
  8  10.5054
  9  30.1135
  10  0.000126808
  11  3.34911
  12  107.746
  13  2.56097e-06
  14  3.50275e-06
  15  1.11151e-05
  16  5.84103
  17  0.0475167
  18  12.6062
  19  1.4666e-05
  20  4.6041
  21  1.02159e-05
  22  17.756
  23  3.09926e-05
  24  0.231739
  25  0.174781
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.133e+02  1.077e+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:  8.938e-01  1.748e-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.258e+00  2.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.58
Ra Dec: 332.474 -50.470
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 3.98e-08 +/- 3.79e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.29e-05

TS (Fixed Index): 1.58
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/206174/likelihoodResults_324086401_324345601_4FGL_J2209.8-5028_daily_bin327.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) = 7232.17055005
delta logL = 0.393131582534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7232.16597281
delta logL = 0.397708825902

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.824       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1310       1.0000          .0000       10.000    
     3 'Normalizat'    1.2230       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91183       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7232.166     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      280 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.824        684.86        .15684E-02    .10206E-04
   2  Index         3.1312        3.0824        .10434        .19635E-03
   3  Normalizat    1.2225        .73375E-01    .59963E-01    .26664E-04
   4  Prefactor     .91223        .53859E-01    .45156E-01    .17082E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.8237
  Index      = 3.13116
  Normalizat = 1.22247
  Prefactor  = 0.912229
 **********
 **   18 **HESSE 
 **********

 FCN=   7232.166     FROM HESSE     STATUS=OK            33 CALLS      313 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.824        144.43        .62737E-04   -1.4429    
   2  Index         3.1312        1.7019        .52377E-02   -.38307    
   3  Normalizat    1.2225        .22173        .26520E-03   -.85911    
   4  Prefactor     .91223        .17376        .24039E-03   -.95715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22776e-10
Minuit parameter uncertainties:
  1  145.696
  2  1.74263
  3  0.221897
  4  0.173864
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/206174': 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) = 7232.16597003
delta logL = 0.39771161052

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  4.082e+01  1.457e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  3.131e+00  1.743e+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.122e-01  1.739e-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.222e+00  2.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.43
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 3.13 +/- 1.74
Photon Flux (Free Index): 6.68e-08 +/- 5.26e-08
Energy Flux (Free Index): 1.26e-05 +/- 1.13e-05

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/206174/cmap_HighResolution_324086401_324345601_4FGL_J2209.8-5028_daily_bin327.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.24e-03', comment='SUCCESS', photon_flux='3.98e-08', energy_flux2='1.26e-05', photon_flux_error='3.79e-08', dlogl='3.98e-01', energy_flux='1.36e-05', photon_flux2='6.68e-08', job_status='DONE', time_completed='2021-09-28 06:26:47.727998', photon_index_error2='1.74', photon_index2='3.13', ts='1.58', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='1.13e-05', EG='1.26', time_epoch_completed='1632835607.73', return_code='0', job_id='206174', GAL2='0.91', EG2='1.22', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='5.26e-08', ts2='2.43', photon_index='2.37' WHERE bin_id='327' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:26:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 206174: <4FGL_J2209.8-5028_daily_bin327> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin327> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 06:10:58 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:11:01 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:11:01 2021
Terminated at Tue Sep 28 06:26:48 2021
Results reported at Tue Sep 28 06:26:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin327 332.474 -50.4702 324086401 324345601 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 :                                   926.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            950 sec.

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

