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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1294
RA = 332.474, Dec = -50.4702
tmin = 574732801, tmax = 574992001
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='211016', job_status='RUN', time_executed='2021-09-28 06:26:22.684693', time_epoch_executed='1632835582.68' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1294'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211016

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211016/ft1_4FGL_J2209.8-5028_daily_bin1294.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211016/ft2_4FGL_J2209.8-5028_daily_bin1294.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211016/ft1_4FGL_J2209.8-5028_daily_bin1294.fits outfile=/scratch/kocevski/211016/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1294.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=574732801.0 tmax=574992001.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 5.33
user 5.09
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211016/ft1_filtered_4FGL_J2209.8-5028_daily_bin1294.fits" evtable="EVENTS" scfile=/scratch/kocevski/211016/ft2_4FGL_J2209.8-5028_daily_bin1294.fits sctable="SC_DATA" outfile=/scratch/kocevski/211016/ltcube_574732801_574992001_4FGL_J2209.8-5028_daily_bin1294.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/211016/ft2_4FGL_J2209.8-5028_daily_bin1294.fits
.....................!
real 11.30
user 10.97
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211016/ft1_filtered_4FGL_J2209.8-5028_daily_bin1294.fits evtable="EVENTS" scfile=/scratch/kocevski/211016/ft2_4FGL_J2209.8-5028_daily_bin1294.fits sctable="SC_DATA" expcube=/scratch/kocevski/211016/ltcube_574732801_574992001_4FGL_J2209.8-5028_daily_bin1294.fits outfile=/scratch/kocevski/211016/expmap_574732801_574992001_4FGL_J2209.8-5028_daily_bin1294.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/211016/ltcube_574732801_574992001_4FGL_J2209.8-5028_daily_bin1294.fits
.....................!
real 189.70
user 185.47
sys 3.91

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/211016/ft1_filtered_4FGL_J2209.8-5028_daily_bin1294.fits scfile=/scratch/kocevski/211016/ft2_4FGL_J2209.8-5028_daily_bin1294.fits outfile=/scratch/kocevski/211016/cmap_574732801_574992001_4FGL_J2209.8-5028_daily_bin1294.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=332.474 yref=-50.4702 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.100       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .79032E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.264       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6568       1.0000         .10000E-03   10000.    
     7 'norm      '    7.4147       1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.205       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5325       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3082       1.0000         .10000E-03   10000.    
    12 'Prefactor '    56.955       1.0000         .10000E-03   10000.    
    13 'norm      '    6.0469       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.5955       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.747       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.713       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.745       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0179       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83551       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=   7448.920     FROM MIGRAD    STATUS=CONVERGED   1005 CALLS     3391 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.101        31.571        .68623E-04   -.45890E-04
   2  Prefactor     .10000E-03    46.669        .15722    ** at limit **
   3  Prefactor     20.264        9.0139        .44488E-03    .43453E-04
   4  Prefactor     .10000E-03    7.9179        .18142E-02** at limit **
   5  Prefactor     .10000E-03    11.539        .18142E-02** at limit **
   6  Prefactor     6.6567        4.3895        .13891E-03   -.60153E-04
   7  norm          7.4144        4.6641        .14048E-03   -.36254E-04
   8  Prefactor     28.206        16.215        .75436E-04    .19743E-04
   9  Prefactor     .10000E-03    30.261        .18142E-02** at limit **
  10  Prefactor     2.5345        5.9287        .12833E-02    .66610E-04
  11  Prefactor     3.3088        3.9191        .17274E-03    .15117E-03
  12  Prefactor     56.929        89.321        .53156E-04   -.20917E-04
  13  norm          6.0471        5.8020        .16328E-03    .35510E-05
  14  Prefactor     4.5955        3.2309        .12377E-03   -.44090E-05
  15  Prefactor     .10000E-03    17.481        .18142E-02** at limit **
  16  Prefactor     13.748        5.6265        .10803E-03    .80716E-04
  17  Prefactor     .10000E-03    6.7116        .18142E-02** at limit **
  18  Prefactor     .10000E-03    5.0645        .18142E-02** at limit **
  19  Prefactor     .10000E-03    24.577        .18142E-02** at limit **
  20  Prefactor     .10000E-03    1.5130        .10362E-02** at limit **
  21  Prefactor     17.713        21.302        .95164E-04    .59732E-06
  22  Prefactor     13.747        14.165        .10804E-03    .68399E-05
  23  norm          .10000E-03    2.0843        .12165E-02** at limit **
  24  Normalizat    1.0177        .20077        .25677E-03   -.28109E-03
  25  Prefactor     .83560        .15634        .22718E-03    .63254E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.101
  Prefactor  = 0.000100003
  Prefactor  = 20.2639
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.65669
  norm       = 7.41441
  Prefactor  = 28.2056
  Prefactor  = 0.000100001
  Prefactor  = 2.53455
  Prefactor  = 3.30876
  Prefactor  = 56.9288
  norm       = 6.04711
  Prefactor  = 4.59545
  Prefactor  = 0.0001
  Prefactor  = 13.7478
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.713
  Prefactor  = 13.7467
  norm       = 0.0001
  Normalizat = 1.01775
  Prefactor  = 0.835603
 **********
 **   18 **HESSE 
 **********

 FCN=   7448.920     FROM HESSE     STATUS=OK           415 CALLS     3806 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.101        31.576        .27449E-05   -1.4539    
   2  Prefactor     .10000E-03    47.322        .15574       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.264        9.0138        .88976E-04   -1.4807    
   4  Prefactor     .10000E-03    7.9182        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.540        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.6567        4.3892        .55564E-05   -1.5192    
   7  norm          7.4144        4.6640        .56194E-05   -1.5163    
   8  Prefactor     28.206        16.214        .30174E-05   -1.4645    
   9  Prefactor     .10000E-03    30.266        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.5345        5.9122        .51332E-04   -1.5390    
  11  Prefactor     3.3088        3.9185        .69098E-05   -1.5344    
  12  Prefactor     56.929        89.139        .10631E-04   -1.4198    
  13  norm          6.0471        5.8019        .65311E-05   -1.5216    
  14  Prefactor     4.5955        3.2308        .49508E-05   -1.5279    
  15  Prefactor     .10000E-03    17.481        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.748        5.6265        .43212E-05   -1.4966    
  17  Prefactor     .10000E-03    6.7119        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.0668        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.577        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.5130        .20723E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.713        21.297        .38066E-05   -1.4866    
  22  Prefactor     13.747        14.165        .43215E-05   -1.4966    
  23  norm          .10000E-03    2.0843        .24330E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0177        .20092        .51354E-04   -.92438    
  25  Prefactor     .83560        .15649        .90872E-05   -.98429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.70239e-10
Minuit parameter uncertainties:
  1  31.5915
  2  0.000757871
  3  9.01437
  4  2.06949e-05
  5  1.38839e-05
  6  4.38939
  7  4.6642
  8  16.2167
  9  0.000303563
  10  5.91361
  11  3.91878
  12  89.3493
  13  5.80246
  14  3.23096
  15  2.87942e-05
  16  5.6267
  17  1.43235e-05
  18  3.96991e-06
  19  8.01793e-05
  20  2.83603e-06
  21  21.3063
  22  14.1688
  23  3.16212e-07
  24  0.201074
  25  0.156575
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  5.693e+01  8.935e+01  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.356e-01  1.566e-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.018e+00  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/211016/likelihoodResults_574732801_574992001_4FGL_J2209.8-5028_daily_bin1294.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) = 7448.23743735
delta logL = 0.682930879431

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7448.23465867
delta logL = 0.685709557373

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.107       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6698       1.0000          .0000       10.000    
     3 'Normalizat'    .97465       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85696       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=   7448.235     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      370 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.164        320.19        .12604E-03   -.42854E-03
   2  Index         3.6680        6.7747        .51905E-02   -.14184E-03
   3  Normalizat    .97427        .18104        .26154E-03   -.97237E-04
   4  Prefactor     .85709        .14428        .22453E-03   -.51537E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1637
  Index      = 3.66803
  Normalizat = 0.974271
  Prefactor  = 0.857094
 **********
 **   18 **HESSE 
 **********

 FCN=   7448.235     FROM HESSE     STATUS=OK            25 CALLS      395 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.164        28.274        .50416E-05   -1.5070    
   2  Index         3.6680        1.2717        .20762E-03   -.26965    
   3  Normalizat    .97427        .19335        .10462E-04   -.93897    
   4  Prefactor     .85709        .15436        .44906E-04   -.97657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.44159e-10
Minuit parameter uncertainties:
  1  28.3114
  2  1.28689
  3  0.19349
  4  0.154439
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211016': 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) = 7448.2346524
delta logL = 0.685715827753

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.016e+01  2.831e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  3.668e+00  1.287e+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:  8.571e-01  1.544e-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.743e-01  1.935e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.10
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 3.67 +/- 1.29
Photon Flux (Free Index): 5.39e-08 +/- 4.50e-08
Energy Flux (Free Index): 8.60e-06 +/- 7.02e-06

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/211016/cmap_HighResolution_574732801_574992001_4FGL_J2209.8-5028_daily_bin1294.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.69e-03', comment='SUCCESS', energy_flux2='8.60e-06', dlogl='6.86e-01', photon_flux2='5.39e-08', job_status='DONE', time_completed='2021-09-28 06:40:52.806027', photon_index_error2='1.29', photon_index2='3.67', ts='0.66', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='8.67e-08', energy_flux_error2='7.02e-06', EG='1.02', time_epoch_completed='1632836452.81', return_code='0', job_id='211016', GAL2='0.86', EG2='0.97', return_code2='0', photon_flux_error2='4.50e-08', ts2='2.10', photon_index='2.37' WHERE bin_id='1294' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:40:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 211016: <4FGL_J2209.8-5028_daily_bin1294> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1294> 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) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:26:05 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:05 2021
Terminated at Tue Sep 28 06:40:53 2021
Results reported at Tue Sep 28 06:40:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1294 332.474 -50.4702 574732801 574992001 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 :                                   864.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            890 sec.

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

