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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1614
RA = 332.474, Dec = -50.4702
tmin = 657676801, tmax = 657936001
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='482816', job_status='RUN', time_executed='2021-12-08 08:26:24.077479', time_epoch_executed='1638980784.08' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1614'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/482816

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/482816/ft1_4FGL_J2209.8-5028_daily_bin1614.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/482816/ft2_4FGL_J2209.8-5028_daily_bin1614.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/482816/ft1_4FGL_J2209.8-5028_daily_bin1614.fits outfile=/scratch/kocevski/482816/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1614.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=657676801.0 tmax=657936001.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.62
user 3.38
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/482816/ft1_filtered_4FGL_J2209.8-5028_daily_bin1614.fits" evtable="EVENTS" scfile=/scratch/kocevski/482816/ft2_4FGL_J2209.8-5028_daily_bin1614.fits sctable="SC_DATA" outfile=/scratch/kocevski/482816/ltcube_657676801_657936001_4FGL_J2209.8-5028_daily_bin1614.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/482816/ft2_4FGL_J2209.8-5028_daily_bin1614.fits
.....................!
real 14.11
user 13.70
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/482816/ft1_filtered_4FGL_J2209.8-5028_daily_bin1614.fits evtable="EVENTS" scfile=/scratch/kocevski/482816/ft2_4FGL_J2209.8-5028_daily_bin1614.fits sctable="SC_DATA" expcube=/scratch/kocevski/482816/ltcube_657676801_657936001_4FGL_J2209.8-5028_daily_bin1614.fits outfile=/scratch/kocevski/482816/expmap_657676801_657936001_4FGL_J2209.8-5028_daily_bin1614.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/482816/ltcube_657676801_657936001_4FGL_J2209.8-5028_daily_bin1614.fits
.....................!
real 192.73
user 187.99
sys 4.29

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/482816/ft1_filtered_4FGL_J2209.8-5028_daily_bin1614.fits scfile=/scratch/kocevski/482816/ft2_4FGL_J2209.8-5028_daily_bin1614.fits outfile=/scratch/kocevski/482816/cmap_657676801_657936001_4FGL_J2209.8-5028_daily_bin1614.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/482816/ft1_filtered_4FGL_J2209.8-5028_daily_bin1614.fits scfile=/scratch/kocevski/482816/ft2_4FGL_J2209.8-5028_daily_bin1614.fits outfile=/scratch/kocevski/482816/cmap_HighResolution_657676801_657936001_4FGL_J2209.8-5028_daily_bin1614.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/482816/ft1_filtered_4FGL_J2209.8-5028_daily_bin1614.fits evtable="EVENTS" scfile=/scratch/kocevski/482816/ft2_4FGL_J2209.8-5028_daily_bin1614.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/482816/Model_4FGL_J2209.8-5028_daily_bin1614.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/482816/ft1_filtered_4FGL_J2209.8-5028_daily_bin1614.fits.....................!
real 55.53
user 54.09
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.7044       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.0214       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1228       1.0000         .10000E-03   10000.    
     7 'norm      '    8.3887       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.312       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3741       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10345E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.2991       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8946       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .63478       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.4489       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10983E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.8488       1.0000         .10000E-03   10000.    
    23 'norm      '    4.0201       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .83517       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91716       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=   7618.600     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2509 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.043        .31872E-06** at limit **
   2  Prefactor     4.6820        75.864       -.44784E-05   -.51934E-04
   3  Prefactor     9.0193        7.0173        .82758E-08   -.56096E-04
   4  Prefactor     .10000E-03    19.859       -.62433E-06** at limit **
   5  Prefactor     .10000E-03    15.729        .17325E-06** at limit **
   6  Prefactor     1.1223        3.0635        .10221E-05   -.38385E-05
   7  norm          8.3869        4.1393        .18487E-08    .26064E-04
   8  Prefactor     .10000E-03    6.1959       -.60044E-06** at limit **
   9  Prefactor     .10000E-03    9.0222        .11344E-06** at limit **
  10  Prefactor     12.313        7.4110       -.28006E-07   -.13124E-03
  11  Prefactor     4.3738        2.6865        .10260E-07   -.95035E-04
  12  Prefactor     .10000E-03    92.836       -.21563E-06** at limit **
  13  norm          1.2989        4.2418        .14630E-05   -.34111E-04
  14  Prefactor     1.8949        2.2476        .16539E-06   -.10285E-03
  15  Prefactor     .10000E-03    18.914        .66857E-07** at limit **
  16  Prefactor     .64724        2.7366        .66444E-06   -.50834E-03
  17  Prefactor     7.4416        19.822        .11541E-06   -.87218E-04
  18  Prefactor     .10000E-03    6.1167        .71181E-06** at limit **
  19  Prefactor     .10000E-03    44.580        .40406E-06** at limit **
  20  Prefactor     .10000E-03    4.0356        .70215E-07** at limit **
  21  Prefactor     .10000E-03    12.710       -.41501E-06** at limit **
  22  Prefactor     6.8452        12.125        .23777E-06   -.24730E-04
  23  norm          4.0205        4.1540       -.98609E-09    .60562E-04
  24  Normalizat    .83535        .15605       -.98560E-06   -.14634E-03
  25  Prefactor     .91704        .12096        .32409E-06   -.21887E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.68203
  Prefactor  = 9.01927
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.1223
  norm       = 8.38693
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.3133
  Prefactor  = 4.37384
  Prefactor  = 0.0001
  norm       = 1.29894
  Prefactor  = 1.89488
  Prefactor  = 0.0001
  Prefactor  = 0.647239
  Prefactor  = 7.44164
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.84523
  norm       = 4.02048
  Normalizat = 0.835353
  Prefactor  = 0.917044
 **********
 **   18 **HESSE 
 **********

 FCN=   7618.600     FROM HESSE     STATUS=OK           429 CALLS     2938 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.6820        81.999        .18553E-03   -1.5275    
   3  Prefactor     9.0193        7.0043        .13344E-03   -1.5107    
   4  Prefactor     .10000E-03    20.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.1223        3.0792        .24150E-03   -1.5496    
   7  norm          8.3869        4.1370        .11976E-03   -1.5129    
   8  Prefactor     .10000E-03    6.3112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.0341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.313        7.4146        .11416E-03   -1.5006    
  11  Prefactor     4.3738        2.6840        .10749E-03   -1.5290    
  12  Prefactor     .10000E-03    92.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2989        4.2913        .32158E-03   -1.5480    
  14  Prefactor     1.8949        2.2316        .13647E-03   -1.5433    
  15  Prefactor     .10000E-03    18.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .64724        7.7302        .24266E-02   -1.5547    
  17  Prefactor     7.4416        19.590        .14695E-03   -1.5162    
  18  Prefactor     .10000E-03    6.2642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    44.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.1073        .17121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.8452        12.137        .15331E-03   -1.5185    
  23  norm          4.0205        4.1616        .17620E-03   -1.5307    
  24  Normalizat    .83535        .18100        .25180E-03   -.98770    
  25  Prefactor     .91704        .14161        .19915E-03   -.95548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.8776e-10
Minuit parameter uncertainties:
  1  7.36729e-05
  2  39.2505
  3  7.00495
  4  8.26595e-05
  5  6.59694e-05
  6  3.07959
  7  4.13712
  8  4.52653e-05
  9  9.87702e-06
  10  7.41519
  11  2.68405
  12  8.05084e-05
  13  4.29236
  14  2.23172
  15  5.73766e-06
  16  4.47398
  17  19.6071
  18  4.24547e-05
  19  7.2963e-05
  20  2.54661e-06
  21  5.07273e-05
  22  12.141
  23  4.16189
  24  0.181135
  25  0.141665
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  8.051e-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:  9.170e-01  1.417e-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.354e-01  1.811e-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: 6.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/482816/likelihoodResults_657676801_657936001_4FGL_J2209.8-5028_daily_bin1614.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) = 7618.59963037
delta logL = -5.11313473908e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7618.59957929
delta logL = -4.47262209491e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3282       1.0000          .0000       10.000    
     3 'Normalizat'    .83535       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91705       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=   7618.600     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      235 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7372.3        .90712E-02** at limit **
   2  Index         2.3691        5.5238        .50000       -.44824E-05
   3  Normalizat    .83535        .31530E-01    .44070E-01    .21596E-04
   4  Prefactor     .91704        .26167E-01    .45222E-01    .21841E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.36909
  Normalizat = 0.835353
  Prefactor  = 0.917044
 **********
 **   18 **HESSE 
 **********

 FCN=   7618.600     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      268 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9490.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3691        5.9775        .50000       -.55410    
   3  Normalizat    .83535        .66553E-01    .25180E-03   -.98770    
   4  Prefactor     .91704        .55251E-01    .19915E-03   -.95548    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.22614e-08
Minuit parameter uncertainties:
  1  0.00959542
  2  56.0108
  3  0.0665596
  4  0.0552546
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/482816': 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) = 7618.59957924
delta logL = -2.9258444556e-09

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  9.595e-03  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.369e+00  5.601e+01  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.170e-01  5.525e-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:  8.354e-01  6.656e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/482816/cmap_HighResolution_657676801_657936001_4FGL_J2209.8-5028_daily_bin1614.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.68e-03', job_status='DONE', photon_flux_upper_limit='6.07e-08', time_completed='2021-12-08 08:39:26.995355', job_id='482816', GAL2='0.92', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1638981567.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='-2.93e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1614' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 08:39:27 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 482816: <4FGL_J2209.8-5028_daily_bin1614> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1614> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec  8 08:25:19 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 08:26:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 08:26:01 2021
Terminated at Wed Dec  8 08:39:27 2021
Results reported at Wed Dec  8 08:39:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1614 332.474 -50.4702 657676801 657936001 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 :                                   782.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            848 sec.

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

