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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1514
RA = 332.474, Dec = -50.4702
tmin = 631756801, tmax = 632016001
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='211911', job_status='RUN', time_executed='2021-09-28 06:34:22.259835', time_epoch_executed='1632836062.26' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1514'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211911

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211911/ft1_4FGL_J2209.8-5028_daily_bin1514.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211911/ft2_4FGL_J2209.8-5028_daily_bin1514.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211911/ft1_4FGL_J2209.8-5028_daily_bin1514.fits outfile=/scratch/kocevski/211911/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1514.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=631756801.0 tmax=632016001.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.40
user 2.19
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/211911/ft2_4FGL_J2209.8-5028_daily_bin1514.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/211911/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1514.fits evtable="EVENTS" outfile="/scratch/kocevski/211911/ft1_filtered_4FGL_J2209.8-5028_daily_bin1514.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211911/ft1_filtered_4FGL_J2209.8-5028_daily_bin1514.fits" evtable="EVENTS" scfile=/scratch/kocevski/211911/ft2_4FGL_J2209.8-5028_daily_bin1514.fits sctable="SC_DATA" outfile=/scratch/kocevski/211911/ltcube_631756801_632016001_4FGL_J2209.8-5028_daily_bin1514.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/211911/ft2_4FGL_J2209.8-5028_daily_bin1514.fits
.....................!
real 13.14
user 12.77
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211911/ft1_filtered_4FGL_J2209.8-5028_daily_bin1514.fits evtable="EVENTS" scfile=/scratch/kocevski/211911/ft2_4FGL_J2209.8-5028_daily_bin1514.fits sctable="SC_DATA" expcube=/scratch/kocevski/211911/ltcube_631756801_632016001_4FGL_J2209.8-5028_daily_bin1514.fits outfile=/scratch/kocevski/211911/expmap_631756801_632016001_4FGL_J2209.8-5028_daily_bin1514.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/211911/ltcube_631756801_632016001_4FGL_J2209.8-5028_daily_bin1514.fits
.....................!
real 191.55
user 186.00
sys 5.22

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

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

This is gtbin version HEAD
real 0.52
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211911/ft1_filtered_4FGL_J2209.8-5028_daily_bin1514.fits scfile=/scratch/kocevski/211911/ft2_4FGL_J2209.8-5028_daily_bin1514.fits outfile=/scratch/kocevski/211911/cmap_HighResolution_631756801_632016001_4FGL_J2209.8-5028_daily_bin1514.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/211911/ft1_filtered_4FGL_J2209.8-5028_daily_bin1514.fits evtable="EVENTS" scfile=/scratch/kocevski/211911/ft2_4FGL_J2209.8-5028_daily_bin1514.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211911/Model_4FGL_J2209.8-5028_daily_bin1514.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/211911/ft1_filtered_4FGL_J2209.8-5028_daily_bin1514.fits.....................!
real 38.62
user 37.35
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.4211       1.0000         .10000E-03   10000.    
     4 'Prefactor '    77.838       1.0000         .10000E-03   10000.    
     5 'Prefactor '    99.878       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1543       1.0000         .10000E-03   10000.    
     7 'norm      '    2.8584       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.428       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.029       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    12.605       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.656       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.4559       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10939E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.0663       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.7611       1.0000         .10000E-03   10000.    
    21 'Prefactor '    77.057       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.9040       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .70412       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.4545       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=   4436.454     FROM MIGRAD    STATUS=CONVERGED     70 CALLS     2400 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 15.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.866        .78931E-04** at limit **
   2  Prefactor     .10002E-03    40.957       -.50599E-04** at limit **
   3  Prefactor     4.4198        1.0517        .90823E-06    .70192E-03
   4  Prefactor     77.843        1.7138        .14179E-05   -.29118E-02
   5  Prefactor     99.876        1.0956       -.40663E-06    .14795E-02
   6  Prefactor     2.1563        2.3468        .12908E-04    .42139E-02
   7  norm          2.8554        7.1904       -.24005E-05    .14612E-02
   8  Prefactor     17.431        1.0683        .74703E-07    .12243E-03
   9  Prefactor     .10000E-03    20.509        .25864E-05** at limit **
  10  Prefactor     14.027        1.0549       -.60995E-06    .33273E-03
  11  Prefactor     .10000E-03    2.3298        .57016E-06** at limit **
  12  Prefactor     .10000E-03    44.185       -.65465E-04** at limit **
  13  norm          12.606        1.0093       -.21497E-07   -.23062E-03
  14  Prefactor     .10000E-03    4.4335       -.12900E-06** at limit **
  15  Prefactor     24.653        1.2497       -.13870E-05    .80575E-03
  16  Prefactor     6.4565        1.2182        .26048E-05    .15095E-02
  17  Prefactor     .10041E-03    28.408        .69332E-04** at limit **
  18  Prefactor     6.0650        1.0690       -.58497E-06   -.88797E-04
  19  Prefactor     .10035E-03    51.369       -.80687E-04** at limit **
  20  Prefactor     4.7600        1.0895       -.16652E-05   -.74831E-03
  21  Prefactor     77.056        1.0099       -.14733E-06    .30922E-03
  22  Prefactor     .10000E-03    6.1731        .37557E-07** at limit **
  23  norm          1.9038        1.2491       -.48382E-05   -.25272E-02
  24  Normalizat    .70417        .28759       -.88333E-06   -.39362E-04
  25  Prefactor     1.4545        .24769       -.96140E-06   -.51104E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.000100016
  Prefactor  = 4.41983
  Prefactor  = 77.8434
  Prefactor  = 99.8761
  Prefactor  = 2.1563
  norm       = 2.85536
  Prefactor  = 17.4312
  Prefactor  = 0.0001
  Prefactor  = 14.0275
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.6057
  Prefactor  = 0.0001
  Prefactor  = 24.6531
  Prefactor  = 6.45646
  Prefactor  = 0.000100412
  Prefactor  = 6.06503
  Prefactor  = 0.000100346
  Prefactor  = 4.75998
  Prefactor  = 77.0564
  Prefactor  = 0.0001
  norm       = 1.90385
  Normalizat = 0.704169
  Prefactor  = 1.45445
 **********
 **   18 **HESSE 
 **********

 FCN=   4436.454     FROM HESSE     STATUS=OK           485 CALLS     2885 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    58.255        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10002E-03    41.895        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.4198        9.8223        .47881E-02   -1.5287    
   4  Prefactor     77.843        61.519        .11379E-02   -1.3941    
   5  Prefactor     99.876        54.309        .10057E-02   -1.3706    
   6  Prefactor     2.1563        7.2422        .70174E-02   -1.5414    
   7  norm          2.8554        7.8143        .60114E-02   -1.5370    
   8  Prefactor     17.431        21.203        .23985E-02   -1.4873    
   9  Prefactor     .10000E-03    20.501        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.027        12.886        .26734E-02   -1.4959    
  11  Prefactor     .10000E-03    2.3221        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    96.127        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.606        11.195        .28206E-02   -1.4998    
  14  Prefactor     .10000E-03    4.3258        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     24.653        45.319        .20168E-02   -1.4715    
  16  Prefactor     6.4565        8.2702        .39489E-02   -1.5200    
  17  Prefactor     .10041E-03    63.901        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.0650        15.527        .40753E-02   -1.5215    
  19  Prefactor     .10035E-03    100.11        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.7600        10.376        .46099E-02   -1.5272    
  21  Prefactor     77.056        55.480        .11436E-02   -1.3950    
  22  Prefactor     .10000E-03    6.1674        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.9038        5.7342        .75340E-02   -1.5432    
  24  Normalizat    .70417        .26466        .80994E-01   -1.0373    
  25  Prefactor     1.4545        .21674        .49957E-01   -.78823    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56335e-07
Minuit parameter uncertainties:
  1  0.000708376
  2  0.00162674
  3  9.82592
  4  61.5695
  5  54.3358
  6  7.24512
  7  7.81708
  8  21.2124
  9  0.000112997
  10  12.8886
  11  1.36199e-05
  12  8.45275e-05
  13  11.197
  14  2.12997e-05
  15  45.3825
  16  8.27166
  17  0.0102736
  18  15.537
  19  0.0117851
  20  10.3804
  21  55.5175
  22  3.00959e-06
  23  5.7358
  24  0.265142
  25  0.216876
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  8.453e-05  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.454e+00  2.169e-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.042e-01  2.651e-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: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/211911/likelihoodResults_631756801_632016001_4FGL_J2209.8-5028_daily_bin1514.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) = 4436.45390352
delta logL = -4.94219939355e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4436.45385505
delta logL = -9.49415152718e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19056E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6650       1.0000          .0000       10.000    
     3 'Normalizat'    .70417       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4545       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=   4436.454     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      286 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10456E-03    36.210        .18142E-01** at limit **
   2  Index         2.5626        6.9160        .50000        .43360E-05
   3  Normalizat    .70417        .43284E-02    .35864E-03   -.25042E-05
   4  Prefactor     1.4545        .37074E-02    .22084E-03   -.72070E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104562
  Index      = 2.56258
  Normalizat = 0.704169
  Prefactor  = 1.45445
 **********
 **   18 **HESSE 
 **********

 FCN=   4436.454     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      315 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10456E-03    279.18        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5626        5.0166        .50000       -.50921    
   3  Normalizat    .70417        .12092E-01    .14346E-04   -1.0373    
   4  Prefactor     1.4545        .10357E-01    .88337E-05   -.78823    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.40791e-10
Minuit parameter uncertainties:
  1  0.0717095
  2  493.711
  3  0.012092
  4  0.0103571
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211911': 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) = 4436.45385427
delta logL = -1.72531144926e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.046e-04  7.171e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.563e+00  4.937e+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.454e+00  1.036e-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.042e-01  1.209e-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/211911/cmap_HighResolution_631756801_632016001_4FGL_J2209.8-5028_daily_bin1514.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.47e-03', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-09-28 06:44:29.854600', job_id='211911', GAL2='1.45', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1632836669.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.45', dlogl='-1.73e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1514' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:44:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 211911: <4FGL_J2209.8-5028_daily_bin1514> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1514> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 06:30:37 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:30:39 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:30:39 2021
Terminated at Tue Sep 28 06:44:30 2021
Results reported at Tue Sep 28 06:44:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1514 332.474 -50.4702 631756801 632016001 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 :                                   572.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             210.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            833 sec.

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

