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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1042
RA = 332.474, Dec = -50.4702
tmin = 509414401, tmax = 509673601
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='210645', job_status='RUN', time_executed='2021-09-28 06:28:54.663173', time_epoch_executed='1632835734.66' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1042'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/210645

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/210645/ft1_4FGL_J2209.8-5028_daily_bin1042.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/210645/ft2_4FGL_J2209.8-5028_daily_bin1042.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/210645/ft1_4FGL_J2209.8-5028_daily_bin1042.fits outfile=/scratch/kocevski/210645/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1042.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=509414401.0 tmax=509673601.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.68
user 3.43
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/210645/ft1_filtered_4FGL_J2209.8-5028_daily_bin1042.fits" evtable="EVENTS" scfile=/scratch/kocevski/210645/ft2_4FGL_J2209.8-5028_daily_bin1042.fits sctable="SC_DATA" outfile=/scratch/kocevski/210645/ltcube_509414401_509673601_4FGL_J2209.8-5028_daily_bin1042.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/210645/ft2_4FGL_J2209.8-5028_daily_bin1042.fits
.....................!
real 12.58
user 12.22
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/210645/ft1_filtered_4FGL_J2209.8-5028_daily_bin1042.fits evtable="EVENTS" scfile=/scratch/kocevski/210645/ft2_4FGL_J2209.8-5028_daily_bin1042.fits sctable="SC_DATA" expcube=/scratch/kocevski/210645/ltcube_509414401_509673601_4FGL_J2209.8-5028_daily_bin1042.fits outfile=/scratch/kocevski/210645/expmap_509414401_509673601_4FGL_J2209.8-5028_daily_bin1042.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/210645/ltcube_509414401_509673601_4FGL_J2209.8-5028_daily_bin1042.fits
.....................!
real 190.19
user 185.24
sys 4.58

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/210645/ft1_filtered_4FGL_J2209.8-5028_daily_bin1042.fits scfile=/scratch/kocevski/210645/ft2_4FGL_J2209.8-5028_daily_bin1042.fits outfile=/scratch/kocevski/210645/cmap_509414401_509673601_4FGL_J2209.8-5028_daily_bin1042.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.57
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/210645/ft1_filtered_4FGL_J2209.8-5028_daily_bin1042.fits scfile=/scratch/kocevski/210645/ft2_4FGL_J2209.8-5028_daily_bin1042.fits outfile=/scratch/kocevski/210645/cmap_HighResolution_509414401_509673601_4FGL_J2209.8-5028_daily_bin1042.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.57
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/210645/ft1_filtered_4FGL_J2209.8-5028_daily_bin1042.fits evtable="EVENTS" scfile=/scratch/kocevski/210645/ft2_4FGL_J2209.8-5028_daily_bin1042.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/210645/Model_4FGL_J2209.8-5028_daily_bin1042.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/210645/ft1_filtered_4FGL_J2209.8-5028_daily_bin1042.fits.....................!
real 40.05
user 38.73
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.933       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.0040       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.990       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.5481       1.0000         .10000E-03   10000.    
     7 'norm      '    12.530       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.280       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.827       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11190E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10650E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.478       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0737       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88496       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=   4731.411     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2872 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.934        26.233        .35045E-06    .17491E-04
   2  Prefactor     .10000E-03    17.709        .10855E-05** at limit **
   3  Prefactor     4.0041        5.4527        .20651E-06    .12909E-03
   4  Prefactor     17.990        28.122       -.16833E-06    .25366E-04
   5  Prefactor     .10000E-03    10.065        .73690E-06** at limit **
   6  Prefactor     6.5481        4.6234        .17363E-06    .21681E-03
   7  norm          12.530        6.7138        .67251E-06    .82049E-03
   8  Prefactor     .10000E-03    9.9091        .60582E-06** at limit **
   9  Prefactor     13.279        27.519        .29305E-06    .32564E-04
  10  Prefactor     .10000E-03    4.4425        .70956E-07** at limit **
  11  Prefactor     11.826        5.9230        .16878E-06    .13827E-03
  12  Prefactor     .10002E-03    194.62        .29878E-05** at limit **
  13  norm          .10000E-03    2.9519       -.16323E-08** at limit **
  14  Prefactor     .10003E-03    6.8769       -.44003E-05** at limit **
  15  Prefactor     .10000E-03    47.673        .16619E-06** at limit **
  16  Prefactor     .10000E-03    6.6988        .84532E-07** at limit **
  17  Prefactor     .10000E-03    11.985       -.43499E-06** at limit **
  18  Prefactor     .10000E-03    6.0488       -.29727E-07** at limit **
  19  Prefactor     .10005E-03    213.90       -.46883E-05** at limit **
  20  Prefactor     10.478        10.230        .24912E-05    .11201E-02
  21  Prefactor     .10000E-03    11.973       -.41368E-06** at limit **
  22  Prefactor     .10000E-03    21.008       -.10694E-05** at limit **
  23  norm          .10000E-03    2.7609       -.31879E-08** at limit **
  24  Normalizat    1.0738        .20962       -.71973E-06    .22925E-03
  25  Prefactor     .88493        .16245       -.37465E-06    .17536E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.9336
  Prefactor  = 0.000100003
  Prefactor  = 4.00409
  Prefactor  = 17.9895
  Prefactor  = 0.000100001
  Prefactor  = 6.5481
  norm       = 12.53
  Prefactor  = 0.000100001
  Prefactor  = 13.2791
  Prefactor  = 0.0001
  Prefactor  = 11.8264
  Prefactor  = 0.000100019
  norm       = 0.0001
  Prefactor  = 0.00010003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100048
  Prefactor  = 10.4782
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Normalizat = 1.07376
  Prefactor  = 0.884932
 **********
 **   18 **HESSE 
 **********

 FCN=   4731.411     FROM HESSE     STATUS=OK           419 CALLS     3291 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.934        26.230        .89710E-04   -1.4815    
   2  Prefactor     .10000E-03    17.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.0041        5.4467        .18170E-03   -1.5308    
   4  Prefactor     17.990        28.110        .94428E-04   -1.4859    
   5  Prefactor     .10000E-03    10.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.5481        4.6215        .11965E-03   -1.5196    
   7  norm          12.530        6.7983        .56581E-03   -1.5000    
   8  Prefactor     .10000E-03    10.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.279        27.520        .10992E-03   -1.4979    
  10  Prefactor     .10000E-03    4.4660        .14155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.826        5.9434        .11168E-03   -1.5020    
  12  Prefactor     .10002E-03    197.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.9542        .11542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10003E-03    9.2520        .21487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    47.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.8691        .34752E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.0709        .16520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10005E-03    218.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.478        11.040        .61891E-03   -1.5060    
  21  Prefactor     .10000E-03    12.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.7610        .11163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0738        .24501        .25693E-03   -.90599    
  25  Prefactor     .88493        .19185        .22046E-03   -.96670    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.80793e-09
Minuit parameter uncertainties:
  1  26.2455
  2  0.000453345
  3  5.4474
  4  28.1307
  5  0.000227733
  6  4.62172
  7  6.79874
  8  0.000184461
  9  27.5458
  10  8.88636e-06
  11  5.94365
  12  0.0038845
  13  2.5649e-07
  14  0.00106018
  15  0.000188801
  16  3.47893e-05
  17  0.000145294
  18  2.55291e-06
  19  0.00651639
  20  11.0423
  21  0.000141569
  22  0.000432969
  23  2.6956e-07
  24  0.24527
  25  0.191999
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  3.884e-03  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.849e-01  1.920e-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.074e+00  2.453e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/210645/likelihoodResults_509414401_509673601_4FGL_J2209.8-5028_daily_bin1042.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): 102
logL (Free Index) = 4731.41135966
delta logL = -2.40186836891e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4731.40115208
delta logL = 0.0101835618634

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2912       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3235       1.0000          .0000       10.000    
     3 'Normalizat'    1.0676       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88718       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=   4731.401     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      309 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2891        65.568        .27118E-03   -.12095E-03
   2  Index         3.3217        3.5030        .38175E-02   -.12207E-03
   3  Normalizat    1.0675        .24329        .25758E-03   -.57087E-03
   4  Prefactor     .88728        .19010        .22019E-03   -.47386E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.28908
  Index      = 3.32169
  Normalizat = 1.06751
  Prefactor  = 0.887276
 **********
 **   18 **HESSE 
 **********

 FCN=   4731.401     FROM HESSE     STATUS=OK            23 CALLS      332 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2891        55.040        .10847E-04   -1.5405    
   2  Index         3.3217        3.2726        .15270E-03   -.34231    
   3  Normalizat    1.0675        .24353        .51517E-04   -.90802    
   4  Prefactor     .88728        .19027        .44038E-04   -.96587    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.17508e-09
Minuit parameter uncertainties:
  1  22.4719
  2  3.61803
  3  0.243782
  4  0.19041
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/210645': 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) = 4731.40115165
delta logL = 0.0101839877261

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  2.289e+00  2.247e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  3.322e+00  3.618e+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.873e-01  1.904e-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.068e+00  2.438e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/210645/cmap_HighResolution_509414401_509673601_4FGL_J2209.8-5028_daily_bin1042.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.17e-03', job_status='DONE', photon_flux_upper_limit='8.00e-08', time_completed='2021-09-28 06:40:01.898486', job_id='210645', GAL2='0.89', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1632836401.9', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.02e-02', ts2='0.02', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1042' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:40:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 210645: <4FGL_J2209.8-5028_daily_bin1042> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1042> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 06:25:30 2021
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:25:32 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:32 2021
Terminated at Tue Sep 28 06:40:02 2021
Results reported at Tue Sep 28 06:40:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1042 332.474 -50.4702 509414401 509673601 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 :                                   617.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            872 sec.

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

