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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1326
RA = 332.474, Dec = -50.4702
tmin = 583027201, tmax = 583286401
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='211633', job_status='RUN', time_executed='2021-09-28 06:30:42.934077', time_epoch_executed='1632835842.93' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1326'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211633

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211633/ft1_4FGL_J2209.8-5028_daily_bin1326.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211633/ft2_4FGL_J2209.8-5028_daily_bin1326.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211633/ft1_4FGL_J2209.8-5028_daily_bin1326.fits outfile=/scratch/kocevski/211633/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1326.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=583027201.0 tmax=583286401.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.61
user 3.37
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211633/ft1_filtered_4FGL_J2209.8-5028_daily_bin1326.fits" evtable="EVENTS" scfile=/scratch/kocevski/211633/ft2_4FGL_J2209.8-5028_daily_bin1326.fits sctable="SC_DATA" outfile=/scratch/kocevski/211633/ltcube_583027201_583286401_4FGL_J2209.8-5028_daily_bin1326.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/211633/ft2_4FGL_J2209.8-5028_daily_bin1326.fits
.....................!
real 14.54
user 14.21
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211633/ft1_filtered_4FGL_J2209.8-5028_daily_bin1326.fits evtable="EVENTS" scfile=/scratch/kocevski/211633/ft2_4FGL_J2209.8-5028_daily_bin1326.fits sctable="SC_DATA" expcube=/scratch/kocevski/211633/ltcube_583027201_583286401_4FGL_J2209.8-5028_daily_bin1326.fits outfile=/scratch/kocevski/211633/expmap_583027201_583286401_4FGL_J2209.8-5028_daily_bin1326.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/211633/ltcube_583027201_583286401_4FGL_J2209.8-5028_daily_bin1326.fits
.....................!
real 190.71
user 185.98
sys 4.30

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/211633/ft1_filtered_4FGL_J2209.8-5028_daily_bin1326.fits scfile=/scratch/kocevski/211633/ft2_4FGL_J2209.8-5028_daily_bin1326.fits outfile=/scratch/kocevski/211633/cmap_583027201_583286401_4FGL_J2209.8-5028_daily_bin1326.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211633/ft1_filtered_4FGL_J2209.8-5028_daily_bin1326.fits scfile=/scratch/kocevski/211633/ft2_4FGL_J2209.8-5028_daily_bin1326.fits outfile=/scratch/kocevski/211633/cmap_HighResolution_583027201_583286401_4FGL_J2209.8-5028_daily_bin1326.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/211633/ft1_filtered_4FGL_J2209.8-5028_daily_bin1326.fits evtable="EVENTS" scfile=/scratch/kocevski/211633/ft2_4FGL_J2209.8-5028_daily_bin1326.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211633/Model_4FGL_J2209.8-5028_daily_bin1326.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/211633/ft1_filtered_4FGL_J2209.8-5028_daily_bin1326.fits.....................!
real 51.59
user 50.12
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.229       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.519       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    71.591       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.8412       1.0000         .10000E-03   10000.    
     7 'norm      '    11.709       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.852       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .75517       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12681E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.0790       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.237       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.1864       1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.056       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    62.344       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.0045       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .96549       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1851       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=   6292.480     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2898 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    67.087       -.20416E-05** at limit **
   2  Prefactor     39.232        54.955        .39132E-06    .29668E-04
   3  Prefactor     10.517        12.305       -.31668E-06   -.10652E-03
   4  Prefactor     .10000E-03    12.368        .90712E-07** at limit **
   5  Prefactor     71.586        38.569       -.67986E-06   -.10838E-03
   6  Prefactor     9.8409        6.2630        .10950E-05   -.59571E-03
   7  norm          11.709        5.6120        .59948E-07    .72051E-04
   8  Prefactor     14.853        14.668        .89868E-07    .73042E-05
   9  Prefactor     .10000E-03    10.585       -.94845E-07** at limit **
  10  Prefactor     .10000E-03    4.7937        .16598E-06** at limit **
  11  Prefactor     .74294        3.2725        .43744E-06   -.26423E-03
  12  Prefactor     .10000E-03    110.79       -.11902E-05** at limit **
  13  norm          5.0791        5.0721       -.13191E-06   -.63806E-04
  14  Prefactor     18.237        6.2419        .15644E-06    .20532E-03
  15  Prefactor     .10001E-03    70.506        .31828E-05** at limit **
  16  Prefactor     7.1854        5.5557        .45915E-06    .43722E-03
  17  Prefactor     28.051        24.684       -.65839E-07   -.68331E-05
  18  Prefactor     .10000E-03    4.1701        .25778E-07** at limit **
  19  Prefactor     62.349        67.039        .82043E-06    .53547E-04
  20  Prefactor     .10000E-03    2.5364        .22220E-07** at limit **
  21  Prefactor     .10000E-03    15.173       -.19265E-07** at limit **
  22  Prefactor     .10000E-03    4.8424       -.20807E-06** at limit **
  23  norm          4.0046        6.0459       -.56100E-08   -.61093E-04
  24  Normalizat    .96579        .22374       -.90678E-06   -.18509E-04
  25  Prefactor     1.1849        .17459        .65562E-07   -.58225E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 39.232
  Prefactor  = 10.5172
  Prefactor  = 0.0001
  Prefactor  = 71.5864
  Prefactor  = 9.84091
  norm       = 11.7092
  Prefactor  = 14.8527
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.742943
  Prefactor  = 0.000100001
  norm       = 5.07909
  Prefactor  = 18.2375
  Prefactor  = 0.000100005
  Prefactor  = 7.18542
  Prefactor  = 28.0514
  Prefactor  = 0.0001
  Prefactor  = 62.3493
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.00457
  Normalizat = 0.965786
  Prefactor  = 1.18485
 **********
 **   18 **HESSE 
 **********

 FCN=   6292.480     FROM HESSE     STATUS=OK           427 CALLS     3325 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    68.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     39.232        55.212        .63995E-04   -1.4454    
   3  Prefactor     10.517        12.336        .12354E-03   -1.5059    
   4  Prefactor     .10000E-03    12.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     71.586        38.695        .47446E-04   -1.4014    
   6  Prefactor     9.8409        6.4847        .63868E-03   -1.5080    
   7  norm          11.709        5.6132        .11707E-03   -1.5023    
   8  Prefactor     14.853        14.666        .10393E-03   -1.4937    
   9  Prefactor     .10000E-03    10.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.8497        .16976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .74294        5.8520        .26504E-02   -1.5536    
  12  Prefactor     .10000E-03    111.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.0791        5.0767        .17423E-03   -1.5257    
  14  Prefactor     18.237        6.2695        .93786E-04   -1.4854    
  15  Prefactor     .10001E-03    73.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.1854        5.6692        .14963E-03   -1.5172    
  17  Prefactor     28.051        24.734        .75636E-04   -1.4648    
  18  Prefactor     .10000E-03    4.1869        .15814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     62.349        67.387        .50820E-04   -1.4127    
  20  Prefactor     .10000E-03    2.5413        .12338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.8616        .17074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.0046        6.0425        .20153E-03   -1.5308    
  24  Normalizat    .96579        .26383        .31528E-03   -.94186    
  25  Prefactor     1.1849        .20857        .23427E-03   -.86799    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.52796e-10
Minuit parameter uncertainties:
  1  0.00080922
  2  55.2836
  3  12.3385
  4  1.98083e-05
  5  38.7086
  6  6.48512
  7  5.61343
  8  14.6693
  9  1.60827e-05
  10  1.89072e-05
  11  4.1705
  12  0.000650528
  13  5.07712
  14  6.26977
  15  0.00127031
  16  5.66961
  17  24.7435
  18  1.03029e-07
  19  67.4691
  20  7.53684e-07
  21  9.489e-06
  22  2.34062e-05
  23  6.04344
  24  0.264182
  25  0.208716
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  6.505e-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:  1.185e+00  2.087e-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:  9.658e-01  2.642e-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.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/211633/likelihoodResults_583027201_583286401_4FGL_J2209.8-5028_daily_bin1326.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) = 6292.48021396
delta logL = -4.2544347707e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6292.48021396
delta logL = -4.25396838182e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96357E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3719       1.0000          .0000       10.000    
     3 'Normalizat'    .96579       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1849       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6292.426     FROM MIGRAD    STATUS=FAILED       261 CALLS      411 TOTAL
                     EDM=   .52E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.735        7026.5        .18143E-01    .14761E-02
   2  Index         1.4520        5.8341        .50000       -.43221E-04
   3  Normalizat    .97040        .59859E-01    .31528E-03    .61624E-04
   4  Prefactor     1.1791        .43434E-01    .23427E-03    .23973E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6292.426     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      502 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.735        7026.5        .91812E-03    .14761E-02
   2  Index         1.4520        5.8341        .24593E-02   -.43221E-04
   3  Normalizat    .97040        .59859E-01    .95179E-04    .61624E-04
   4  Prefactor     1.1791        .43434E-01    .70103E-04    .23973E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6292.426     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      536 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.735        80.452        .36285E-02   -.25313E-04
   2  Index         1.4520        1.1936        .17008E-01   -.26669E-04
   3  Normalizat    .97040        .25018        .12611E-04    .61661E-04
   4  Prefactor     1.1791        .20505        .93707E-05    .24022E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.7347
  Index      = 1.45201
  Normalizat = 0.970399
  Prefactor  = 1.1791
 **********
 **   18 **HESSE 
 **********

 FCN=   6292.426     FROM HESSE     STATUS=OK            27 CALLS      563 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.735        81.101        .14514E-03   -1.4733    
   2  Index         1.4520        1.2038        .68031E-03   -.78893    
   3  Normalizat    .97040        .24968        .25223E-05   -.94029    
   4  Prefactor     1.1791        .20466        .18741E-05   -.86977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15477e-10
Minuit parameter uncertainties:
  1  81.4809
  2  1.22855
  3  0.249976
  4  0.2048
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211633': 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) = 6292.4260102
delta logL = 0.0541612184106

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  2.373e+01  8.148e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  1.452e+00  1.229e+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.179e+00  2.048e-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:  9.704e-01  2.500e-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/211633/cmap_HighResolution_583027201_583286401_4FGL_J2209.8-5028_daily_bin1326.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.42e-03', job_status='DONE', photon_flux_upper_limit='7.03e-08', time_completed='2021-09-28 06:43:42.396852', job_id='211633', GAL2='1.18', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1632836622.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='5.42e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1326' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:43:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 211633: <4FGL_J2209.8-5028_daily_bin1326> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1326 332.474 -50.4702 583027201 583286401 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 :                                   767.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             350.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            805 sec.

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

