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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin419
RA = 332.474, Dec = -50.4702
tmin = 347932801, tmax = 348192001
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='207359', job_status='RUN', time_executed='2021-09-28 06:17:30.466893', time_epoch_executed='1632835050.47' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='419'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/207359

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/207359/ft1_4FGL_J2209.8-5028_daily_bin419.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/207359/ft2_4FGL_J2209.8-5028_daily_bin419.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/207359/ft1_4FGL_J2209.8-5028_daily_bin419.fits outfile=/scratch/kocevski/207359/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin419.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=347932801.0 tmax=348192001.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.41
user 3.20
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/207359/ft2_4FGL_J2209.8-5028_daily_bin419.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/207359/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin419.fits evtable="EVENTS" outfile="/scratch/kocevski/207359/ft1_filtered_4FGL_J2209.8-5028_daily_bin419.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/207359/ft1_filtered_4FGL_J2209.8-5028_daily_bin419.fits" evtable="EVENTS" scfile=/scratch/kocevski/207359/ft2_4FGL_J2209.8-5028_daily_bin419.fits sctable="SC_DATA" outfile=/scratch/kocevski/207359/ltcube_347932801_348192001_4FGL_J2209.8-5028_daily_bin419.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/207359/ft2_4FGL_J2209.8-5028_daily_bin419.fits
.....................!
real 11.93
user 11.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/207359/ft1_filtered_4FGL_J2209.8-5028_daily_bin419.fits evtable="EVENTS" scfile=/scratch/kocevski/207359/ft2_4FGL_J2209.8-5028_daily_bin419.fits sctable="SC_DATA" expcube=/scratch/kocevski/207359/ltcube_347932801_348192001_4FGL_J2209.8-5028_daily_bin419.fits outfile=/scratch/kocevski/207359/expmap_347932801_348192001_4FGL_J2209.8-5028_daily_bin419.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/207359/ltcube_347932801_348192001_4FGL_J2209.8-5028_daily_bin419.fits
.....................!
real 190.83
user 185.22
sys 5.27

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/207359/ft1_filtered_4FGL_J2209.8-5028_daily_bin419.fits scfile=/scratch/kocevski/207359/ft2_4FGL_J2209.8-5028_daily_bin419.fits outfile=/scratch/kocevski/207359/cmap_347932801_348192001_4FGL_J2209.8-5028_daily_bin419.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/207359/ft1_filtered_4FGL_J2209.8-5028_daily_bin419.fits scfile=/scratch/kocevski/207359/ft2_4FGL_J2209.8-5028_daily_bin419.fits outfile=/scratch/kocevski/207359/cmap_HighResolution_347932801_348192001_4FGL_J2209.8-5028_daily_bin419.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/207359/ft1_filtered_4FGL_J2209.8-5028_daily_bin419.fits evtable="EVENTS" scfile=/scratch/kocevski/207359/ft2_4FGL_J2209.8-5028_daily_bin419.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/207359/Model_4FGL_J2209.8-5028_daily_bin419.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/207359/ft1_filtered_4FGL_J2209.8-5028_daily_bin419.fits.....................!
real 46.16
user 44.86
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.545       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12085E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    49.568       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.3184       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6940       1.0000         .10000E-03   10000.    
     7 'norm      '    9.5328       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15526E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4095       1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.986       1.0000         .10000E-03   10000.    
    13 'norm      '    9.0962       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4275       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.5445       1.0000         .10000E-03   10000.    
    17 'Prefactor '    48.819       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91164       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96127       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5957.052     FROM MIGRAD    STATUS=CONVERGED    130 CALLS     2443 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.550        14.097       -.35925E-05    .18390E-01
   2  Prefactor     .18865E-03    212.24       -.27368E-04** at limit **
   3  Prefactor     49.570        1.7911       -.40848E-06    .62667E-02
   4  Prefactor     9.3193        4.7790        .18034E-05   -.14666E-02
   5  Prefactor     .10000E-03    7.1459       -.85612E-06** at limit **
   6  Prefactor     2.6939        2.5954       -.34712E-06   -.78419E-04
   7  norm          9.5335        4.6760       -.17260E-06   -.12677E-02
   8  Prefactor     .10000E-03    5.7907       -.63700E-07** at limit **
   9  Prefactor     .10009E-03    15.005        .89935E-05** at limit **
  10  Prefactor     .10000E-03    5.0857       -.33632E-05** at limit **
  11  Prefactor     1.4120        3.3098        .54446E-06    .12097E-04
  12  Prefactor     31.721        66.810        .25000E-05    .34493E-02
  13  norm          9.0968        1.0368       -.11640E-06   -.88808E-03
  14  Prefactor     3.4284        4.3594       -.50390E-07   -.10042E-03
  15  Prefactor     .10001E-03    18.266        .34739E-05** at limit **
  16  Prefactor     8.5455        1.0790       -.13714E-06   -.30260E-04
  17  Prefactor     48.836        5.8300        .80035E-06    .54973E-03
  18  Prefactor     .10000E-03    8.4153       -.36510E-07** at limit **
  19  Prefactor     .10000E-03    39.765        .44087E-05** at limit **
  20  Prefactor     .10000E-03    2.7257        .43774E-07** at limit **
  21  Prefactor     .10012E-03    15.313       -.72593E-05** at limit **
  22  Prefactor     .10000E-03    5.2248       -.63434E-06** at limit **
  23  norm          .10000E-03    3.8595        .29788E-06** at limit **
  24  Normalizat    .91162        .21493        .51215E-05   -.67551E-04
  25  Prefactor     .96117        .16743       -.78512E-05   -.13899E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.5496
  Prefactor  = 0.000188648
  Prefactor  = 49.5704
  Prefactor  = 9.31933
  Prefactor  = 0.0001
  Prefactor  = 2.69391
  norm       = 9.53347
  Prefactor  = 0.0001
  Prefactor  = 0.000100086
  Prefactor  = 0.0001
  Prefactor  = 1.41198
  Prefactor  = 31.7207
  norm       = 9.09682
  Prefactor  = 3.42838
  Prefactor  = 0.000100006
  Prefactor  = 8.54548
  Prefactor  = 48.8357
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100122
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.911616
  Prefactor  = 0.961172
 **********
 **   18 **HESSE 
 **********

 FCN=   5957.052     FROM HESSE     STATUS=OK           475 CALLS     2918 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.550        22.515        .19439E-02   -1.4677    
   2  Prefactor     .18865E-03    281.36        .10316E-01   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     49.570        11.803        .14240E-02   -1.4299    
   4  Prefactor     9.3193        26.720        .32822E-02   -1.5097    
   5  Prefactor     .10000E-03    7.1360        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.6939        2.6012        .62054E-02   -1.5380    
   7  norm          9.5335        4.8113        .32449E-02   -1.5090    
   8  Prefactor     .10000E-03    5.7740        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10009E-03    15.113        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.0605        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.4120        3.3535        .91244E-02   -1.5470    
  12  Prefactor     31.721        73.980        .17712E-02   -1.4581    
  13  norm          9.0968        6.8198        .33222E-02   -1.5105    
  14  Prefactor     3.4284        4.3898        .54622E-02   -1.5338    
  15  Prefactor     .10001E-03    18.272        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.5455        6.4671        .34284E-02   -1.5123    
  17  Prefactor     48.836        31.733        .14348E-02   -1.4309    
  18  Prefactor     .10000E-03    8.3105        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    39.762        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.7196        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10012E-03    15.481        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.2197        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.8548        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .91162        .19509        .45050E-01   -.96053    
  25  Prefactor     .96117        .14708        .45781E-01   -.94035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21464e-06
Minuit parameter uncertainties:
  1  22.5222
  2  0.31736
  3  11.8032
  4  26.7546
  5  9.12938e-06
  6  2.60133
  7  4.81147
  8  1.43547e-05
  9  0.00228516
  10  3.88898e-05
  11  3.35394
  12  74.1946
  13  6.82042
  14  4.39025
  15  0.000644908
  16  6.46761
  17  31.7436
  18  1.73039e-05
  19  0.000465093
  20  1.64206e-07
  21  0.00274929
  22  2.65374e-05
  23  1.36583e-06
  24  0.195243
  25  0.147145
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  3.172e+01  7.419e+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:  9.612e-01  1.471e-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.116e-01  1.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/207359/likelihoodResults_347932801_348192001_4FGL_J2209.8-5028_daily_bin419.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) = 5957.04796872
delta logL = 0.00389280033323

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5957.04377523
delta logL = 0.00808629038602

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.464       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1498       1.0000          .0000       10.000    
     3 'Normalizat'    .91368       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95993       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=   5957.044     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      263 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.479        119.41        .62253E-04    .11323E-05
   2  Index         2.1458        1.7008        .13904E-01    .12350E-03
   3  Normalizat    .91450        .21049        .27817E-03    .38329E-03
   4  Prefactor     .95935        .16705        .21564E-03    .56606E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.4786
  Index      = 2.1458
  Normalizat = 0.914499
  Prefactor  = 0.959348
 **********
 **   18 **HESSE 
 **********

 FCN=   5957.044     FROM HESSE     STATUS=OK            25 CALLS      288 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.479        111.20        .12451E-04   -1.4419    
   2  Index         2.1458        1.5906        .27807E-02   -.60753    
   3  Normalizat    .91450        .21040        .55634E-04   -.95953    
   4  Prefactor     .95935        .16702        .43127E-04   -.94097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84259e-10
Minuit parameter uncertainties:
  1  111.764
  2  1.63333
  3  0.210592
  4  0.167112
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/207359': 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) = 5957.04376463
delta logL = 0.00809688926438

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  4.148e+01  1.118e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.146e+00  1.633e+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.593e-01  1.671e-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.145e-01  2.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.23
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/207359/cmap_HighResolution_347932801_348192001_4FGL_J2209.8-5028_daily_bin419.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.18e-03', job_status='DONE', photon_flux_upper_limit='8.01e-08', time_completed='2021-09-28 06:28:46.609686', job_id='207359', GAL2='0.96', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1632835726.61', return_code2='0', ts='0.23', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='8.10e-03', ts2='0.24', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='419' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:28:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 207359: <4FGL_J2209.8-5028_daily_bin419> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin419> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 06:15:19 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:15:22 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:15:22 2021
Terminated at Tue Sep 28 06:28:49 2021
Results reported at Tue Sep 28 06:28:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin419 332.474 -50.4702 347932801 348192001 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 :                                   674.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            810 sec.

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

