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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1262
RA = 332.474, Dec = -50.4702
tmin = 566438401, tmax = 566697601
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='210978', job_status='RUN', time_executed='2021-09-28 06:28:06.508173', time_epoch_executed='1632835686.51' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1262'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/210978

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/210978/ft1_4FGL_J2209.8-5028_daily_bin1262.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/210978/ft2_4FGL_J2209.8-5028_daily_bin1262.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/210978/ft1_4FGL_J2209.8-5028_daily_bin1262.fits outfile=/scratch/kocevski/210978/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1262.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=566438401.0 tmax=566697601.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 2.19
user 2.02
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/210978/ft2_4FGL_J2209.8-5028_daily_bin1262.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/210978/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1262.fits evtable="EVENTS" outfile="/scratch/kocevski/210978/ft1_filtered_4FGL_J2209.8-5028_daily_bin1262.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/210978/ft1_filtered_4FGL_J2209.8-5028_daily_bin1262.fits" evtable="EVENTS" scfile=/scratch/kocevski/210978/ft2_4FGL_J2209.8-5028_daily_bin1262.fits sctable="SC_DATA" outfile=/scratch/kocevski/210978/ltcube_566438401_566697601_4FGL_J2209.8-5028_daily_bin1262.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/210978/ft2_4FGL_J2209.8-5028_daily_bin1262.fits
.....................!
real 12.41
user 11.99
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/210978/ft1_filtered_4FGL_J2209.8-5028_daily_bin1262.fits evtable="EVENTS" scfile=/scratch/kocevski/210978/ft2_4FGL_J2209.8-5028_daily_bin1262.fits sctable="SC_DATA" expcube=/scratch/kocevski/210978/ltcube_566438401_566697601_4FGL_J2209.8-5028_daily_bin1262.fits outfile=/scratch/kocevski/210978/expmap_566438401_566697601_4FGL_J2209.8-5028_daily_bin1262.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/210978/ltcube_566438401_566697601_4FGL_J2209.8-5028_daily_bin1262.fits
.....................!
real 192.43
user 186.91
sys 5.21

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/210978/ft1_filtered_4FGL_J2209.8-5028_daily_bin1262.fits scfile=/scratch/kocevski/210978/ft2_4FGL_J2209.8-5028_daily_bin1262.fits outfile=/scratch/kocevski/210978/cmap_566438401_566697601_4FGL_J2209.8-5028_daily_bin1262.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/210978/ft1_filtered_4FGL_J2209.8-5028_daily_bin1262.fits scfile=/scratch/kocevski/210978/ft2_4FGL_J2209.8-5028_daily_bin1262.fits outfile=/scratch/kocevski/210978/cmap_HighResolution_566438401_566697601_4FGL_J2209.8-5028_daily_bin1262.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/210978/ft1_filtered_4FGL_J2209.8-5028_daily_bin1262.fits evtable="EVENTS" scfile=/scratch/kocevski/210978/ft2_4FGL_J2209.8-5028_daily_bin1262.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/210978/Model_4FGL_J2209.8-5028_daily_bin1262.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/210978/ft1_filtered_4FGL_J2209.8-5028_daily_bin1262.fits......................!
real 33.32
user 32.01
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    507.60       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.910       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    14.998       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.129       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.7814       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6031       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7661       1.0000         .10000E-03   10000.    
    15 'Prefactor '    45.205       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    48.991       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.272       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10660E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.1488       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .77509       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1393       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=   3821.572     FROM MIGRAD    STATUS=CONVERGED     86 CALLS     2526 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     507.60        1.0282       -.87866E-07    .14150E-02
   2  Prefactor     .10080E-03    19.940        .11376E-04** at limit **
   3  Prefactor     17.905        1.0351       -.14997E-07   -.27218E-03
   4  Prefactor     .10001E-03    24.066        .48213E-05** at limit **
   5  Prefactor     .10031E-03    37.231       -.27490E-04** at limit **
   6  Prefactor     .10000E-03    4.5110       -.71610E-06** at limit **
   7  norm          14.996        3.3621       -.70758E-05   -.13408E-01
   8  Prefactor     16.126        1.0534       -.66563E-06   -.10220E-02
   9  Prefactor     6.7718        2.6596       -.74813E-05    .16365E-02
  10  Prefactor     1.6027        3.6389        .23258E-04    .26994E-02
  11  Prefactor     .10000E-03    2.5307        .11429E-05** at limit **
  12  Prefactor     .10025E-03    21.585        .39081E-04** at limit **
  13  norm          .10000E-03    5.0311       -.51559E-06** at limit **
  14  Prefactor     3.7648        1.1142       -.19727E-05   -.39642E-02
  15  Prefactor     45.202        1.5173       -.13721E-05    .15285E-02
  16  Prefactor     .10000E-03    3.4894        .21144E-05** at limit **
  17  Prefactor     48.981        2.4134       -.25112E-05    .40027E-02
  18  Prefactor     11.269        1.2043        .14911E-05    .99508E-04
  19  Prefactor     .10261E-03    80.886       -.11305E-03** at limit **
  20  Prefactor     .10000E-03    2.3385        .26339E-05** at limit **
  21  Prefactor     .10011E-03    23.018        .45914E-04** at limit **
  22  Prefactor     .10000E-03    6.4865        .22907E-05** at limit **
  23  norm          2.1489        3.5934       -.34285E-05   -.32982E-03
  24  Normalizat    .77559        .26474        .57574E-05    .57944E-04
  25  Prefactor     1.1388        .24502       -.10779E-05    .85186E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 507.601
  Prefactor  = 0.000100799
  Prefactor  = 17.9045
  Prefactor  = 0.000100012
  Prefactor  = 0.000100311
  Prefactor  = 0.0001
  norm       = 14.9965
  Prefactor  = 16.1263
  Prefactor  = 6.77184
  Prefactor  = 1.60271
  Prefactor  = 0.0001
  Prefactor  = 0.000100252
  norm       = 0.0001
  Prefactor  = 3.76479
  Prefactor  = 45.2018
  Prefactor  = 0.0001
  Prefactor  = 48.9815
  Prefactor  = 11.2693
  Prefactor  = 0.000102614
  Prefactor  = 0.0001
  Prefactor  = 0.000100107
  Prefactor  = 0.0001
  norm       = 2.14885
  Normalizat = 0.775595
  Prefactor  = 1.13882
 **********
 **   18 **HESSE 
 **********

 FCN=   3821.572     FROM HESSE     STATUS=OK           473 CALLS     2999 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     507.60        554.39        .45557E-03   -1.1163    
   2  Prefactor     .10080E-03    71.830        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.905        19.008        .23660E-02   -1.4861    
   4  Prefactor     .10001E-03    24.146        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10031E-03    39.279        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.5019        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          14.996        8.1332        .25856E-02   -1.4933    
   8  Prefactor     16.126        19.255        .24932E-02   -1.4905    
   9  Prefactor     6.7718        78.613        .38520E-02   -1.5187    
  10  Prefactor     1.6027        15.969        .83691E-02   -1.5455    
  11  Prefactor     .10000E-03    2.5182        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10025E-03    65.176        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.0134        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.7648        4.6164        .52008E-02   -1.5320    
  15  Prefactor     45.202        59.965        .14908E-02   -1.4362    
  16  Prefactor     .10000E-03    3.4563        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     48.981        49.015        .14323E-02   -1.4307    
  18  Prefactor     11.269        18.430        .29831E-02   -1.5036    
  19  Prefactor     .10261E-03    102.24        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.3336        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10011E-03    63.067        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.4498        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.1489        3.6203        .70276E-02   -1.5415    
  24  Normalizat    .77559        .24643        .65819E-01   -1.0098    
  25  Prefactor     1.1388        .21656        .36255E-01   -.88235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.73736e-07
Minuit parameter uncertainties:
  1  560.457
  2  0.0151725
  3  19.0141
  4  0.00109543
  5  0.00699021
  6  1.82081e-05
  7  8.13383
  8  19.2628
  9  46.2218
  10  10.1214
  11  3.4061e-06
  12  0.00811551
  13  1.361e-05
  14  4.61687
  15  60.0449
  16  1.78481e-06
  17  49.0549
  18  18.439
  19  0.0327508
  20  1.21475e-05
  21  0.00519719
  22  2.1957e-05
  23  3.62065
  24  0.246782
  25  0.216728
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.003e-04  8.116e-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.139e+00  2.167e-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:  7.756e-01  2.468e-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: 9.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/210978/likelihoodResults_566438401_566697601_4FGL_J2209.8-5028_daily_bin1262.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) = 3821.57162037
delta logL = -7.29836351638e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3821.57154785
delta logL = -4.66772689833e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7263       1.0000          .0000       10.000    
     3 'Normalizat'    .77559       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1388       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=   3821.572     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      282 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10535E-03    25.703        .18142E-01** at limit **
   2  Index         2.6150        8.1080        .50000        .69431E-05
   3  Normalizat    .77559        .41991E-02    .29119E-03    .25377E-06
   4  Prefactor     1.1388        .38844E-02    .22500E-03   -.90193E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105352
  Index      = 2.61497
  Normalizat = 0.775595
  Prefactor  = 1.13882
 **********
 **   18 **HESSE 
 **********

 FCN=   3821.572     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      311 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10535E-03    187.51        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6150        8.6595        .50000       -.49725    
   3  Normalizat    .77559        .11401E-01    .11648E-04   -1.0098    
   4  Prefactor     1.1388        .10547E-01    .89998E-05   -.88235    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.2395e-09
Minuit parameter uncertainties:
  1  0.0635607
  2  431.98
  3  0.0114012
  4  0.0105468
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/210978': 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): 102
logL (Free Index) = 3821.57154772
delta logL = -3.33886418957e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.054e-04  6.356e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.615e+00  4.320e+02  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.139e+00  1.055e-02  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:  7.756e-01  1.140e-02  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/210978/cmap_HighResolution_566438401_566697601_4FGL_J2209.8-5028_daily_bin1262.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.22e-03', job_status='DONE', photon_flux_upper_limit='9.36e-08', time_completed='2021-09-28 06:37:01.262949', job_id='210978', GAL2='1.14', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1632836221.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='-3.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1262' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:37:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 210978: <4FGL_J2209.8-5028_daily_bin1262> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1262> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 06:25:59 2021
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:26:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 06:26:01 2021
Terminated at Tue Sep 28 06:37:02 2021
Results reported at Tue Sep 28 06:37:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1262 332.474 -50.4702 566438401 566697601 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 :                                   531.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   660 sec.
    Turnaround time :                            663 sec.

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

