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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1623
RA = 332.474, Dec = -50.4702
tmin = 660009601, tmax = 660268801
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='482829', job_status='RUN', time_executed='2021-12-08 08:29:02.747864', time_epoch_executed='1638980942.75' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1623'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/482829

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/482829/ft1_4FGL_J2209.8-5028_daily_bin1623.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/482829/ft2_4FGL_J2209.8-5028_daily_bin1623.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/482829/ft1_4FGL_J2209.8-5028_daily_bin1623.fits outfile=/scratch/kocevski/482829/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1623.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=660009601.0 tmax=660268801.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 4.86
user 4.59
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/482829/ft2_4FGL_J2209.8-5028_daily_bin1623.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/482829/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1623.fits evtable="EVENTS" outfile="/scratch/kocevski/482829/ft1_filtered_4FGL_J2209.8-5028_daily_bin1623.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.53
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/482829/ft1_filtered_4FGL_J2209.8-5028_daily_bin1623.fits" evtable="EVENTS" scfile=/scratch/kocevski/482829/ft2_4FGL_J2209.8-5028_daily_bin1623.fits sctable="SC_DATA" outfile=/scratch/kocevski/482829/ltcube_660009601_660268801_4FGL_J2209.8-5028_daily_bin1623.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/482829/ft2_4FGL_J2209.8-5028_daily_bin1623.fits
.....................!
real 13.53
user 13.13
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/482829/ft1_filtered_4FGL_J2209.8-5028_daily_bin1623.fits evtable="EVENTS" scfile=/scratch/kocevski/482829/ft2_4FGL_J2209.8-5028_daily_bin1623.fits sctable="SC_DATA" expcube=/scratch/kocevski/482829/ltcube_660009601_660268801_4FGL_J2209.8-5028_daily_bin1623.fits outfile=/scratch/kocevski/482829/expmap_660009601_660268801_4FGL_J2209.8-5028_daily_bin1623.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/482829/ltcube_660009601_660268801_4FGL_J2209.8-5028_daily_bin1623.fits
.....................!
real 192.41
user 186.06
sys 5.74

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/482829/ft1_filtered_4FGL_J2209.8-5028_daily_bin1623.fits scfile=/scratch/kocevski/482829/ft2_4FGL_J2209.8-5028_daily_bin1623.fits outfile=/scratch/kocevski/482829/cmap_660009601_660268801_4FGL_J2209.8-5028_daily_bin1623.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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/482829/ft1_filtered_4FGL_J2209.8-5028_daily_bin1623.fits scfile=/scratch/kocevski/482829/ft2_4FGL_J2209.8-5028_daily_bin1623.fits outfile=/scratch/kocevski/482829/cmap_HighResolution_660009601_660268801_4FGL_J2209.8-5028_daily_bin1623.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.56
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/482829/ft1_filtered_4FGL_J2209.8-5028_daily_bin1623.fits evtable="EVENTS" scfile=/scratch/kocevski/482829/ft2_4FGL_J2209.8-5028_daily_bin1623.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/482829/Model_4FGL_J2209.8-5028_daily_bin1623.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/482829/ft1_filtered_4FGL_J2209.8-5028_daily_bin1623.fits.....................!
real 43.58
user 42.16
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .69052       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .22494E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.647       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.486       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2259       1.0000         .10000E-03   10000.    
     9 'Prefactor '    85.529       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7826       1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.244       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3177       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.130       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.317       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.299       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10995E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.2508       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .67835       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3528       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=   5092.829     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2940 TOTAL
                     EDM=   .76E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.1891       -.16917E-06** at limit **
   2  Prefactor     .10000E-03    54.327       -.15780E-05** at limit **
   3  Prefactor     .62007        54.602       -.11818E-04    .10475E-04
   4  Prefactor     .10000E-03    222.75       -.13508E-04** at limit **
   5  Prefactor     10.638        25.643       -.11447E-05    .51740E-05
   6  Prefactor     .10000E-03    2.8125       -.36039E-06** at limit **
   7  norm          10.462        6.8235       -.91938E-06    .17785E-03
   8  Prefactor     2.2122        23.464       -.36823E-05    .17979E-04
   9  Prefactor     85.549        52.301       -.36850E-06   -.48468E-05
  10  Prefactor     .10000E-03    3.4399        .12869E-05** at limit **
  11  Prefactor     1.7826        3.9146       -.15988E-05   -.10778E-03
  12  Prefactor     31.157        79.553        .85456E-05    .26114E-04
  13  norm          .10000E-03    3.4153        .18069E-06** at limit **
  14  Prefactor     7.3180        4.9269        .77589E-07    .53664E-04
  15  Prefactor     19.113        44.340        .68645E-06    .97852E-05
  16  Prefactor     .10000E-03    2.7259        .13685E-06** at limit **
  17  Prefactor     34.305        43.389        .29380E-07    .11617E-04
  18  Prefactor     18.288        18.759        .25739E-06    .64040E-05
  19  Prefactor     .10000E-03    253.86        .49231E-05** at limit **
  20  Prefactor     4.2515        7.8818       -.43721E-06    .17104E-05
  21  Prefactor     .10000E-03    27.530       -.11006E-05** at limit **
  22  Prefactor     .10000E-03    5.7908       -.10756E-06** at limit **
  23  norm          .10000E-03    5.9943       -.11504E-06** at limit **
  24  Normalizat    .67810        .23664        .44124E-06    .12156E-03
  25  Prefactor     1.3530        .18271        .12322E-05    .60639E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.62007
  Prefactor  = 0.000100004
  Prefactor  = 10.6381
  Prefactor  = 0.0001
  norm       = 10.4617
  Prefactor  = 2.21217
  Prefactor  = 85.5485
  Prefactor  = 0.0001
  Prefactor  = 1.78262
  Prefactor  = 31.1567
  norm       = 0.0001
  Prefactor  = 7.31795
  Prefactor  = 19.1126
  Prefactor  = 0.0001
  Prefactor  = 34.3049
  Prefactor  = 18.2875
  Prefactor  = 0.0001
  Prefactor  = 4.25154
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.678101
  Prefactor  = 1.35299
 **********
 **   18 **HESSE 
 **********

 FCN=   5092.829     FROM HESSE     STATUS=OK           425 CALLS     3365 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    54.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .62007        55.239        .44742E-02   -1.5550    
   4  Prefactor     .10000E-03    223.90        .40241E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.638        25.635        .12279E-03   -1.5056    
   6  Prefactor     .10000E-03    2.8444        .11685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.462        6.7559        .12373E-03   -1.5061    
   8  Prefactor     2.2122        23.492        .27559E-03   -1.5410    
   9  Prefactor     85.549        52.365        .43439E-04   -1.3855    
  10  Prefactor     .10000E-03    3.4355        .12903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.7826        3.9205        .20075E-03   -1.5441    
  12  Prefactor     31.157        80.261        .71683E-04   -1.4591    
  13  norm          .10000E-03    3.4272        .12880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.3180        4.9305        .12407E-03   -1.5167    
  15  Prefactor     19.113        44.340        .91574E-04   -1.4833    
  16  Prefactor     .10000E-03    2.7346        .11500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     34.305        43.408        .68407E-04   -1.4536    
  18  Prefactor     18.288        18.713        .93628E-04   -1.4852    
  19  Prefactor     .10000E-03    254.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.2515        7.8733        .19543E-03   -1.5296    
  21  Prefactor     .10000E-03    27.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.7959        .16773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    6.0219        .17066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .67810        .27129        .34560E-03   -1.0476    
  25  Prefactor     1.3530        .21156        .20493E-03   -.81745    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12422e-10
Minuit parameter uncertainties:
  1  4.26458e-06
  2  8.14527e-05
  3  11.7153
  4  0.00190829
  5  25.6613
  6  5.64419e-06
  7  6.7564
  8  14.4248
  9  52.3937
  10  4.96729e-06
  11  3.92105
  12  80.5411
  13  1.83838e-06
  14  4.93081
  15  44.4167
  16  4.98385e-06
  17  43.4479
  18  18.7187
  19  0.00032554
  20  7.87519
  21  5.35511e-05
  22  3.02732e-06
  23  3.3287e-06
  24  0.271826
  25  0.211696
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  3.116e+01  8.054e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.372e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.353e+00  2.117e-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:  6.781e-01  2.718e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/482829/likelihoodResults_660009601_660268801_4FGL_J2209.8-5028_daily_bin1623.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5092.82087448
delta logL = 0.00786790078382

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5092.81818251
delta logL = 0.0105598661876

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.186       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5757       1.0000          .0000       10.000    
     3 'Normalizat'    .67603       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3539       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=   5092.818     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      254 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.209        88.623        .79820E-04    .21792E-04
   2  Index         2.5750        1.5731        .11091E-01    .20899E-04
   3  Normalizat    .67606        .25594        .34607E-03    .76473E-03
   4  Prefactor     1.3538        .20787        .20487E-03    .12011E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.2094
  Index      = 2.575
  Normalizat = 0.676061
  Prefactor  = 1.35382
 **********
 **   18 **HESSE 
 **********

 FCN=   5092.818     FROM HESSE     STATUS=OK            25 CALLS      279 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.209        79.053        .31928E-05   -1.4703    
   2  Index         2.5750        1.4100        .44364E-03   -.50636    
   3  Normalizat    .67606        .25609        .69214E-04   -1.0485    
   4  Prefactor     1.3538        .20796        .40973E-04   -.81721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46174e-09
Minuit parameter uncertainties:
  1  79.3838
  2  1.43568
  3  0.256538
  4  0.208092
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/482829': 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) = 5092.81818228
delta logL = 0.0105601024843

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  2.521e+01  7.938e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.575e+00  1.436e+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:  1.354e+00  2.081e-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:  6.761e-01  2.565e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
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/482829/cmap_HighResolution_660009601_660268801_4FGL_J2209.8-5028_daily_bin1623.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.26e-03', job_status='DONE', photon_flux_upper_limit='9.42e-08', time_completed='2021-12-08 08:39:58.277200', job_id='482829', GAL2='1.35', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1638981598.28', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='1.35', dlogl='1.06e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1623' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 08:39:58 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 482829: <4FGL_J2209.8-5028_daily_bin1623> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1623> 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) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 08:26:13 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:13 2021
Terminated at Wed Dec  8 08:39:59 2021
Results reported at Wed Dec  8 08:39:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1623 332.474 -50.4702 660009601 660268801 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 :                                   654.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            880 sec.

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

