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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1274
RA = 332.474, Dec = -50.4702
tmin = 569548801, tmax = 569808001
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='210996', job_status='RUN', time_executed='2021-09-28 06:28:42.095204', time_epoch_executed='1632835722.1' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1274'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/210996

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/210996/ft1_4FGL_J2209.8-5028_daily_bin1274.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/210996/ft2_4FGL_J2209.8-5028_daily_bin1274.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/210996/ft1_4FGL_J2209.8-5028_daily_bin1274.fits outfile=/scratch/kocevski/210996/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1274.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=569548801.0 tmax=569808001.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.66
user 3.41
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/210996/ft2_4FGL_J2209.8-5028_daily_bin1274.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/210996/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1274.fits evtable="EVENTS" outfile="/scratch/kocevski/210996/ft1_filtered_4FGL_J2209.8-5028_daily_bin1274.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/210996/ft1_filtered_4FGL_J2209.8-5028_daily_bin1274.fits" evtable="EVENTS" scfile=/scratch/kocevski/210996/ft2_4FGL_J2209.8-5028_daily_bin1274.fits sctable="SC_DATA" outfile=/scratch/kocevski/210996/ltcube_569548801_569808001_4FGL_J2209.8-5028_daily_bin1274.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/210996/ft2_4FGL_J2209.8-5028_daily_bin1274.fits
.....................!
real 11.82
user 11.46
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/210996/ft1_filtered_4FGL_J2209.8-5028_daily_bin1274.fits evtable="EVENTS" scfile=/scratch/kocevski/210996/ft2_4FGL_J2209.8-5028_daily_bin1274.fits sctable="SC_DATA" expcube=/scratch/kocevski/210996/ltcube_569548801_569808001_4FGL_J2209.8-5028_daily_bin1274.fits outfile=/scratch/kocevski/210996/expmap_569548801_569808001_4FGL_J2209.8-5028_daily_bin1274.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/210996/ltcube_569548801_569808001_4FGL_J2209.8-5028_daily_bin1274.fits
.....................!
real 191.38
user 185.46
sys 5.60

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/210996/ft1_filtered_4FGL_J2209.8-5028_daily_bin1274.fits scfile=/scratch/kocevski/210996/ft2_4FGL_J2209.8-5028_daily_bin1274.fits outfile=/scratch/kocevski/210996/cmap_569548801_569808001_4FGL_J2209.8-5028_daily_bin1274.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/210996/ft1_filtered_4FGL_J2209.8-5028_daily_bin1274.fits scfile=/scratch/kocevski/210996/ft2_4FGL_J2209.8-5028_daily_bin1274.fits outfile=/scratch/kocevski/210996/cmap_HighResolution_569548801_569808001_4FGL_J2209.8-5028_daily_bin1274.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=332.474 yref=-50.4702 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3506       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2937       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.0586       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .55906E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.1352       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4978       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2061       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.8740       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.7216       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .18114E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.8790       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.113       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .86840       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0542       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=   5671.710     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2483 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3437        89.515       -.45073E-05    .13772E-03
   2  Prefactor     .10000E-03    76.330        .60436E-06** at limit **
   3  Prefactor     4.2949        9.4997        .33262E-07   -.29624E-04
   4  Prefactor     .10000E-03    17.382        .43090E-06** at limit **
   5  Prefactor     .10000E-03    7.1127        .14772E-06** at limit **
   6  Prefactor     .10000E-03    1.7379        .20795E-06** at limit **
   7  norm          5.0630        5.0371       -.12682E-06   -.35308E-03
   8  Prefactor     .10008E-03    56.852        .15004E-04** at limit **
   9  Prefactor     .10000E-03    18.121        .22234E-06** at limit **
  10  Prefactor     6.1373        7.8881       -.19979E-06    .31487E-03
  11  Prefactor     5.4964        4.5334       -.78540E-07   -.28385E-05
  12  Prefactor     .10000E-03    88.689        .14193E-06** at limit **
  13  norm          .10000E-03    3.0059       -.13024E-06** at limit **
  14  Prefactor     1.2057        2.9911       -.74075E-07    .40330E-04
  15  Prefactor     .10000E-03    15.836        .61144E-07** at limit **
  16  Prefactor     6.8761        5.6021       -.29924E-06   -.32482E-03
  17  Prefactor     6.7771        27.710        .63551E-06   -.90494E-05
  18  Prefactor     .10002E-03    9.2465       -.52689E-05** at limit **
  19  Prefactor     .10000E-03    32.797       -.53903E-06** at limit **
  20  Prefactor     4.8789        7.7027       -.59036E-06    .28003E-03
  21  Prefactor     11.112        29.941       -.37832E-06   -.11533E-04
  22  Prefactor     .10000E-03    11.562        .21271E-06** at limit **
  23  norm          .10000E-03    2.1481        .13481E-07** at limit **
  24  Normalizat    .86821        .19918        .26787E-05   -.17853E-03
  25  Prefactor     1.0544        .15105       -.20427E-05   -.44374E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.34374
  Prefactor  = 0.0001
  Prefactor  = 4.29491
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.063
  Prefactor  = 0.000100078
  Prefactor  = 0.0001
  Prefactor  = 6.13734
  Prefactor  = 5.49641
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 1.20569
  Prefactor  = 0.0001
  Prefactor  = 6.87605
  Prefactor  = 6.77714
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 4.87892
  Prefactor  = 11.1121
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.868205
  Prefactor  = 1.05442
 **********
 **   18 **HESSE 
 **********

 FCN=   5671.710     FROM HESSE     STATUS=OK           425 CALLS     2908 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3437        97.189        .18823E-02   -1.5476    
   2  Prefactor     .10000E-03    76.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.2949        9.4791        .19442E-03   -1.5293    
   4  Prefactor     .10000E-03    17.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.1215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.7560        .97001E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.0630        4.9972        .16073E-03   -1.5258    
   8  Prefactor     .10008E-03    61.360        .48915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.1373        7.9251        .81042E-03   -1.5212    
  11  Prefactor     5.4964        4.5228        .13663E-03   -1.5239    
  12  Prefactor     .10000E-03    88.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.0098        .12753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2057        2.9396        .19515E-03   -1.5488    
  15  Prefactor     .10000E-03    15.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.8761        5.5970        .15077E-03   -1.5183    
  17  Prefactor     6.7771        27.822        .15477E-03   -1.5187    
  18  Prefactor     .10002E-03    10.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    32.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.8789        7.7502        .91053E-03   -1.5266    
  21  Prefactor     11.112        29.926        .12018E-03   -1.5041    
  22  Prefactor     .10000E-03    11.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.1482        .10780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .86821        .22209        .26983E-03   -.97587    
  25  Prefactor     1.0544        .17263        .20357E-03   -.90937    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70717e-09
Minuit parameter uncertainties:
  1  22.8937
  2  6.46651e-05
  3  9.48241
  4  6.49185e-05
  5  2.23333e-05
  6  1.57612e-05
  7  4.99766
  8  0.00437978
  9  6.66513e-05
  10  7.92644
  11  4.5231
  12  0.00112819
  13  1.13822e-05
  14  2.93996
  15  4.06385e-05
  16  5.59742
  17  27.485
  18  0.000944038
  19  7.2233e-05
  20  7.75182
  21  29.9661
  22  0.000106283
  23  9.4615e-07
  24  0.222323
  25  0.17272
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.128e-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:  1.054e+00  1.727e-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:  8.682e-01  2.223e-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: 7.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/210996/likelihoodResults_569548801_569808001_4FGL_J2209.8-5028_daily_bin1274.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) = 5671.71034085
delta logL = -5.35416602361e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5671.71034084
delta logL = -5.35371063961e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96351E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3719       1.0000          .0000       10.000    
     3 'Normalizat'    .86820       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0544       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=   5671.710     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      201 TOTAL
                     EDM=   .66E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    194.17        .90713E-02** at limit **
   2  Index         2.3675        5.8879        .50000        .41266E-06
   3  Normalizat    .86820        .17834        .44494E-01    .12360E-04
   4  Prefactor     1.0544        .14768        .39658E-01    .53391E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.36754
  Normalizat = 0.868203
  Prefactor  = 1.05442
 **********
 **   18 **HESSE 
 **********

 FCN=   5671.710     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .34E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    106.10        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3675        6.1722        .50000       -.55447    
   3  Normalizat    .86820        .20321        .26984E-03   -.97587    
   4  Prefactor     1.0544        .16837        .20356E-03   -.90937    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36913e-13
Minuit parameter uncertainties:
  1  1.19203e-05
  2  4.72861
  3  0.203393
  4  0.16845
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/210996': 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) = 5671.71028731
delta logL = 5.60248736292e-10

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.192e-05  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.368e+00  4.729e+00  0.000e+00  1.000e+01 (-1.000e+00)
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.054e+00  1.684e-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:  8.682e-01  2.034e-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/210996/cmap_HighResolution_569548801_569808001_4FGL_J2209.8-5028_daily_bin1274.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.07e-03', job_status='DONE', photon_flux_upper_limit='7.88e-08', time_completed='2021-09-28 06:39:35.179405', job_id='210996', GAL2='1.05', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1632836375.18', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='5.60e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1274' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:39:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 210996: <4FGL_J2209.8-5028_daily_bin1274> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1274> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 06:26:01 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:26:03 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:03 2021
Terminated at Tue Sep 28 06:39:35 2021
Results reported at Tue Sep 28 06:39:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1274 332.474 -50.4702 569548801 569808001 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 :                                   645.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            814 sec.

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

