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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin674
RA = 332.474, Dec = -50.4702
tmin = 414028801, tmax = 414288001
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='208877', job_status='RUN', time_executed='2021-09-28 06:21:53.731810', time_epoch_executed='1632835313.73' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/208877

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/208877/ft1_4FGL_J2209.8-5028_daily_bin674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/208877/ft2_4FGL_J2209.8-5028_daily_bin674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/208877/ft1_4FGL_J2209.8-5028_daily_bin674.fits outfile=/scratch/kocevski/208877/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin674.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=414028801.0 tmax=414288001.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 5.32
user 5.06
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/208877/ft2_4FGL_J2209.8-5028_daily_bin674.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/208877/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin674.fits evtable="EVENTS" outfile="/scratch/kocevski/208877/ft1_filtered_4FGL_J2209.8-5028_daily_bin674.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/208877/ft1_filtered_4FGL_J2209.8-5028_daily_bin674.fits" evtable="EVENTS" scfile=/scratch/kocevski/208877/ft2_4FGL_J2209.8-5028_daily_bin674.fits sctable="SC_DATA" outfile=/scratch/kocevski/208877/ltcube_414028801_414288001_4FGL_J2209.8-5028_daily_bin674.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/208877/ft2_4FGL_J2209.8-5028_daily_bin674.fits
.....................!
real 12.22
user 11.84
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/208877/ft1_filtered_4FGL_J2209.8-5028_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/208877/ft2_4FGL_J2209.8-5028_daily_bin674.fits sctable="SC_DATA" expcube=/scratch/kocevski/208877/ltcube_414028801_414288001_4FGL_J2209.8-5028_daily_bin674.fits outfile=/scratch/kocevski/208877/expmap_414028801_414288001_4FGL_J2209.8-5028_daily_bin674.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/208877/ltcube_414028801_414288001_4FGL_J2209.8-5028_daily_bin674.fits
.....................!
real 190.44
user 185.19
sys 4.83

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/208877/ft1_filtered_4FGL_J2209.8-5028_daily_bin674.fits scfile=/scratch/kocevski/208877/ft2_4FGL_J2209.8-5028_daily_bin674.fits outfile=/scratch/kocevski/208877/cmap_414028801_414288001_4FGL_J2209.8-5028_daily_bin674.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/208877/ft1_filtered_4FGL_J2209.8-5028_daily_bin674.fits scfile=/scratch/kocevski/208877/ft2_4FGL_J2209.8-5028_daily_bin674.fits outfile=/scratch/kocevski/208877/cmap_HighResolution_414028801_414288001_4FGL_J2209.8-5028_daily_bin674.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.59
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/208877/ft1_filtered_4FGL_J2209.8-5028_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/208877/ft2_4FGL_J2209.8-5028_daily_bin674.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/208877/Model_4FGL_J2209.8-5028_daily_bin674.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/208877/ft1_filtered_4FGL_J2209.8-5028_daily_bin674.fits....................!
real 54.12
user 52.62
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30104E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    47.078       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.5626       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0934       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.6662       1.0000         .10000E-03   10000.    
     7 'norm      '    2.3837       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.7300       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9640       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.9835       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .46482       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.171       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.4171       1.0000         .10000E-03   10000.    
    23 'norm      '    .11327E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4737       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .68334       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=   6548.414     FROM MIGRAD    STATUS=CONVERGED    582 CALLS     2918 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10007E-03    16.551        .31777E-05** at limit **
   2  Prefactor     47.098        41.010        .63665E-06    .19261E-03
   3  Prefactor     8.5625        7.2917        .16666E-06    .32687E-03
   4  Prefactor     4.0967        49.612        .13283E-05    .70543E-04
   5  Prefactor     .10000E-03    7.8492        .36603E-07** at limit **
   6  Prefactor     5.6663        4.6694        .40470E-06    .82733E-03
   7  norm          2.3837        2.3335       -.11777E-06   -.23714E-03
   8  Prefactor     6.7297        11.030        .34142E-06    .15436E-03
   9  Prefactor     .10000E-03    20.355       -.56530E-06** at limit **
  10  Prefactor     .10000E-03    7.7494        .36420E-06** at limit **
  11  Prefactor     5.9640        4.3647        .19399E-06    .58351E-03
  12  Prefactor     .10000E-03    93.040       -.48005E-06** at limit **
  13  norm          2.9836        3.6506       -.96439E-07   -.13805E-03
  14  Prefactor     .47291        3.0852        .19271E-06   -.44584E-05
  15  Prefactor     10.144        172.81        .96355E-05    .84453E-04
  16  Prefactor     .10000E-03    6.6297       -.95689E-07** at limit **
  17  Prefactor     .10000E-03    28.453       -.69878E-06** at limit **
  18  Prefactor     .10000E-03    3.9827       -.83729E-08** at limit **
  19  Prefactor     .10000E-03    45.083        .84070E-06** at limit **
  20  Prefactor     .10000E-03    4.6946       -.74502E-06** at limit **
  21  Prefactor     .10000E-03    28.581       -.69672E-06** at limit **
  22  Prefactor     2.4153        52.141        .32999E-05    .75091E-04
  23  norm          .10002E-03    19.882        .93336E-05** at limit **
  24  Normalizat    1.4739        .19613        .21809E-05    .52227E-03
  25  Prefactor     .68318        .13241       -.23560E-05    .40942E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100074
  Prefactor  = 47.0984
  Prefactor  = 8.56253
  Prefactor  = 4.09668
  Prefactor  = 0.0001
  Prefactor  = 5.66626
  norm       = 2.38367
  Prefactor  = 6.72973
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.96397
  Prefactor  = 0.000100001
  norm       = 2.98364
  Prefactor  = 0.472906
  Prefactor  = 10.1436
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 2.41527
  norm       = 0.00010002
  Normalizat = 1.47387
  Prefactor  = 0.683176
 **********
 **   18 **HESSE 
 **********

 FCN=   6548.414     FROM HESSE     STATUS=OK           429 CALLS     3347 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10007E-03    102.75        .58954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     47.098        41.059        .58438E-04   -1.4334    
   3  Prefactor     8.5625        7.2765        .13699E-03   -1.5123    
   4  Prefactor     4.0967        49.122        .19926E-03   -1.5303    
   5  Prefactor     .10000E-03    7.8655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.6663        4.6950        .15011E-03   -1.5232    
   7  norm          2.3837        2.3375        .11742E-03   -1.5399    
   8  Prefactor     6.7297        11.026        .15467E-03   -1.5189    
   9  Prefactor     .10000E-03    20.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.8494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.9640        4.3867        .13760E-03   -1.5219    
  12  Prefactor     .10000E-03    93.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.9836        3.6490        .16704E-03   -1.5362    
  14  Prefactor     .47291        13.601        .24359E-02   -1.5570    
  15  Prefactor     10.144        190.05        .12564E-03   -1.5071    
  16  Prefactor     .10000E-03    6.7984        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    28.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.9928        .15771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    45.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.7582        .17215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    28.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.4153        52.302        .26329E-03   -1.5397    
  23  norm          .10002E-03    22.340        .38715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4739        .22769        .24636E-03   -.78515    
  25  Prefactor     .68318        .15266        .24639E-03   -1.0419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00795e-08
Minuit parameter uncertainties:
  1  0.00552076
  2  41.084
  3  7.27727
  4  28.4004
  5  1.38903e-05
  6  4.69535
  7  2.33756
  8  11.0288
  9  0.000271884
  10  7.37091e-05
  11  4.38693
  12  0.000509781
  13  3.64924
  14  5.07292
  15  88.1388
  16  2.44475e-05
  17  0.00037288
  18  1.63354e-06
  19  0.000566852
  20  0.00010752
  21  0.000365306
  22  22.5006
  23  0.00133226
  24  0.227847
  25  0.152751
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  5.098e-04  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:  6.832e-01  1.528e-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:  1.474e+00  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/208877/likelihoodResults_414028801_414288001_4FGL_J2209.8-5028_daily_bin674.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) = 6548.41439704
delta logL = -5.09943356519e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6548.41434608
delta logL = -3.69545887224e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10426E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3292       1.0000          .0000       10.000    
     3 'Normalizat'    1.4739       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68318       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=   6548.414     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      264 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9611.3        .18142E-02** at limit **
   2  Index         2.3424        6.1581        .50000       -.12954E-05
   3  Normalizat    1.4739        .98591E-01    .24636E-03    .63830E-03
   4  Prefactor     .68318        .70400E-01    .24639E-03    .44845E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.34236
  Normalizat = 1.47387
  Prefactor  = 0.683179
 **********
 **   18 **HESSE 
 **********

 FCN=   6548.414     FROM HESSE     STATUS=OK            29 CALLS      293 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    99.816        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3424        6.1678        .50000       -.56040    
   3  Normalizat    1.4739        .20960        .49273E-04   -.78515    
   4  Prefactor     .68318        .14968        .49278E-04   -1.0419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29656e-10
Minuit parameter uncertainties:
  1  0.000248892
  2  4.50045
  3  0.209725
  4  0.14977
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/208877': 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) = 6548.41434606
delta logL = -8.83574102772e-09

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  2.489e-04  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.342e+00  4.500e+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:  6.832e-01  1.498e-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:  1.474e+00  2.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 332.474 -50.470

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/208877/cmap_HighResolution_414028801_414288001_4FGL_J2209.8-5028_daily_bin674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.71e-03', job_status='DONE', photon_flux_upper_limit='7.40e-08', time_completed='2021-09-28 06:34:07.327495', job_id='208877', GAL2='0.68', fit_tolerance='1e-08', EG2='1.47', EG='1.47', time_epoch_completed='1632836047.33', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='-8.84e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='674' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:34:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 208877: <4FGL_J2209.8-5028_daily_bin674> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin674> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 06:20:15 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:20:17 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:20:17 2021
Terminated at Tue Sep 28 06:34:08 2021
Results reported at Tue Sep 28 06:34:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin674 332.474 -50.4702 414028801 414288001 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 :                                   729.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            833 sec.

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

