/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 113 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 = 7426
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2209.8-5028_daily_bin281
RA = 332.474, Dec = -50.4702
tmin = 312163201, tmax = 312422401
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='206104', job_status='RUN', time_executed='2021-09-28 06:12:56.838896', time_epoch_executed='1632834776.84' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='281'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/206104

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/206104/ft1_4FGL_J2209.8-5028_daily_bin281.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/206104/ft2_4FGL_J2209.8-5028_daily_bin281.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/206104/ft1_4FGL_J2209.8-5028_daily_bin281.fits outfile=/scratch/kocevski/206104/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin281.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=312163201.0 tmax=312422401.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.47
user 3.23
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/206104/ft1_filtered_4FGL_J2209.8-5028_daily_bin281.fits" evtable="EVENTS" scfile=/scratch/kocevski/206104/ft2_4FGL_J2209.8-5028_daily_bin281.fits sctable="SC_DATA" outfile=/scratch/kocevski/206104/ltcube_312163201_312422401_4FGL_J2209.8-5028_daily_bin281.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/206104/ft2_4FGL_J2209.8-5028_daily_bin281.fits
.....................!
real 11.75
user 11.37
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/206104/ft1_filtered_4FGL_J2209.8-5028_daily_bin281.fits evtable="EVENTS" scfile=/scratch/kocevski/206104/ft2_4FGL_J2209.8-5028_daily_bin281.fits sctable="SC_DATA" expcube=/scratch/kocevski/206104/ltcube_312163201_312422401_4FGL_J2209.8-5028_daily_bin281.fits outfile=/scratch/kocevski/206104/expmap_312163201_312422401_4FGL_J2209.8-5028_daily_bin281.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/206104/ltcube_312163201_312422401_4FGL_J2209.8-5028_daily_bin281.fits
.....................!
real 192.63
user 187.46
sys 4.82

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/206104/ft1_filtered_4FGL_J2209.8-5028_daily_bin281.fits scfile=/scratch/kocevski/206104/ft2_4FGL_J2209.8-5028_daily_bin281.fits outfile=/scratch/kocevski/206104/cmap_312163201_312422401_4FGL_J2209.8-5028_daily_bin281.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.58
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/206104/ft1_filtered_4FGL_J2209.8-5028_daily_bin281.fits scfile=/scratch/kocevski/206104/ft2_4FGL_J2209.8-5028_daily_bin281.fits outfile=/scratch/kocevski/206104/cmap_HighResolution_312163201_312422401_4FGL_J2209.8-5028_daily_bin281.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=332.474 yref=-50.4702 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/206104/ft1_filtered_4FGL_J2209.8-5028_daily_bin281.fits evtable="EVENTS" scfile=/scratch/kocevski/206104/ft2_4FGL_J2209.8-5028_daily_bin281.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/206104/Model_4FGL_J2209.8-5028_daily_bin281.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/206104/ft1_filtered_4FGL_J2209.8-5028_daily_bin281.fits.....................!
real 47.06
user 45.75
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    44.850       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.9769       1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.395       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.367       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    44.126       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.307       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.7886       1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.187       1.0000         .10000E-03   10000.    
    13 'norm      '    7.4972       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9064       1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.918       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11896E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.074       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.470       1.0000         .10000E-03   10000.    
    19 'Prefactor '    46.766       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .23766E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    52.146       1.0000         .10000E-03   10000.    
    23 'norm      '    1.4825       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5419       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .66383       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6006.957     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     2895 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.676       -.94026E-08** at limit **
   2  Prefactor     44.853        1.7104        .33822E-07   -.82770E-04
   3  Prefactor     8.9787        7.9601        .11438E-06    .25618E-03
   4  Prefactor     33.401        9.8039        .39616E-06   -.20834E-02
   5  Prefactor     15.360        10.089       -.79150E-07   -.74042E-02
   6  Prefactor     .10000E-03    1.7583       -.16729E-06** at limit **
   7  norm          .10000E-03    7.4962       -.80188E-06** at limit **
   8  Prefactor     44.119        13.841       -.38298E-06   -.11104E-02
   9  Prefactor     18.312        2.1297        .88157E-07    .12925E-03
  10  Prefactor     .10000E-03    4.5515       -.93887E-06** at limit **
  11  Prefactor     2.7892        2.8234        .56751E-07    .23570E-06
  12  Prefactor     29.170        3.9268        .34423E-07   -.22077E-03
  13  norm          7.4955        7.1678        .15882E-06   -.32787E-03
  14  Prefactor     2.9050        3.7403        .27069E-06    .34445E-04
  15  Prefactor     30.930        13.257        .57716E-06   -.19225E-02
  16  Prefactor     .10000E-03    18.033        .27592E-05** at limit **
  17  Prefactor     21.998        33.102       -.10975E-05   -.28636E-02
  18  Prefactor     11.478        15.664       -.20478E-06    .55869E-03
  19  Prefactor     46.771        2.7493       -.72351E-07   -.39936E-03
  20  Prefactor     .10000E-03    3.1934       -.61925E-06** at limit **
  21  Prefactor     .11989E-03    1128.5        .60494E-05** at limit **
  22  Prefactor     52.143        17.389       -.61920E-06    .70457E-02
  23  norm          1.4857        19.554        .14956E-05    .48415E-03
  24  Normalizat    1.5419        .23909       -.16774E-05   -.13810E-03
  25  Prefactor     .66371        .17498        .74231E-06   -.79050E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 44.8531
  Prefactor  = 8.97873
  Prefactor  = 33.4008
  Prefactor  = 15.3603
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 44.1186
  Prefactor  = 18.3118
  Prefactor  = 0.0001
  Prefactor  = 2.78916
  Prefactor  = 29.17
  norm       = 7.49547
  Prefactor  = 2.905
  Prefactor  = 30.9295
  Prefactor  = 0.0001
  Prefactor  = 21.9983
  Prefactor  = 11.4777
  Prefactor  = 46.7708
  Prefactor  = 0.0001
  Prefactor  = 0.000119891
  Prefactor  = 52.1434
  norm       = 1.48567
  Normalizat = 1.5419
  Prefactor  = 0.663707
 **********
 **   18 **HESSE 
 **********

 FCN=   6006.957     FROM HESSE     STATUS=OK           503 CALLS     3398 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.665        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     44.853        46.346        .14967E-02   -1.4368    
   3  Prefactor     8.9787        7.9978        .33443E-02   -1.5109    
   4  Prefactor     33.401        33.276        .17335E-02   -1.4551    
   5  Prefactor     15.360        16.598        .25543E-02   -1.4924    
   6  Prefactor     .10000E-03    1.7473        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.3650        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     44.119        22.500        .15088E-02   -1.4379    
   9  Prefactor     18.312        46.614        .23402E-02   -1.4852    
  10  Prefactor     .10000E-03    4.5383        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.7892        2.8267        .60914E-02   -1.5374    
  12  Prefactor     29.170        68.325        .18540E-02   -1.4627    
  13  norm          7.4955        7.1732        .36617E-02   -1.5160    
  14  Prefactor     2.9050        3.7616        .59584E-02   -1.5367    
  15  Prefactor     30.930        34.318        .18015E-02   -1.4595    
  16  Prefactor     .10000E-03    5.3946        .59842E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.998        41.523        .21313E-02   -1.4770    
  18  Prefactor     11.478        16.815        .29572E-02   -1.5030    
  19  Prefactor     46.771        92.879        .14658E-02   -1.4339    
  20  Prefactor     .10000E-03    3.1803        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .11989E-03    47.176        .14971       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     52.143        26.764        .13885E-02   -1.4262    
  23  norm          1.4857        19.762        .88109E-02   -1.5464    
  24  Normalizat    1.5419        .21134        .56296E-01   -.76608    
  25  Prefactor     .66371        .15253        .61876E-01   -1.0497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70879e-07
Minuit parameter uncertainties:
  1  3.45745e-06
  2  46.3831
  3  7.99872
  4  33.2943
  5  16.6031
  6  2.50094e-06
  7  2.5944e-05
  8  22.5047
  9  46.7073
  10  2.43589e-05
  11  2.8268
  12  68.5095
  13  7.17404
  14  3.76189
  15  34.3397
  16  8.5275e-05
  17  41.5776
  18  16.8217
  19  93.1685
  20  1.31731e-05
  21  0.0613138
  22  26.7704
  23  10.8411
  24  0.211462
  25  0.152625
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  2.917e+01  6.851e+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:  6.637e-01  1.526e-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.542e+00  2.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/206104/likelihoodResults_312163201_312422401_4FGL_J2209.8-5028_daily_bin281.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) = 6006.94825066
delta logL = 0.00843284842358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6006.94486535
delta logL = 0.0118181604912

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.836       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1229       1.0000          .0000       10.000    
     3 'Normalizat'    1.5448       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66226       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=   6006.945     FROM MIGRAD    STATUS=FAILED        96 CALLS      288 TOTAL
                     EDM=   .63E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.001        87.440        .33473E-03    .36845E-03
   2  Index         2.1035        1.5797        .56965E-02    .66313E-03
   3  Normalizat    1.5452        .22641        .24870E-03   -.33677E-03
   4  Prefactor     .66211        .17153        .27401E-03   -.12128E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6006.945     FROM SIMPLEX   STATUS=UNCHANGED     67 CALLS      355 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.001        87.440        .87724E-03   -1.4507    
   2  Index         2.1035        1.5797        .16161E-02   -.61787    
   3  Normalizat    1.5452        .22641        .28091E-03   -.76516    
   4  Prefactor     .66211        .17153        .28706E-03   -1.0503    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6006.945     FROM MIGRAD    STATUS=CONVERGED     26 CALLS      381 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.005        86.593        .66946E-04    .50980E-04
   2  Index         2.1031        1.5645        .22786E-03   -.31932E-05
   3  Normalizat    1.5452        .22651        .49739E-04    .21897E-04
   4  Prefactor     .66210        .17162        .10960E-04    .12862E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.005
  Index      = 2.10312
  Normalizat = 1.54521
  Prefactor  = 0.662102
 **********
 **   18 **HESSE 
 **********

 FCN=   6006.945     FROM HESSE     STATUS=OK            23 CALLS      404 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.005        86.555        .13389E-04   -1.4507    
   2  Index         2.1031        1.5639        .45572E-04   -.61796    
   3  Normalizat    1.5452        .22651        .99478E-05   -.76516    
   4  Prefactor     .66210        .17162        .21921E-05   -1.0503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.29489e-11
Minuit parameter uncertainties:
  1  86.8591
  2  1.60508
  3  0.226663
  4  0.171761
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/206104': 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) = 6006.94478656
delta logL = 0.0118969465693

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  3.600e+01  8.686e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.103e+00  1.605e+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.621e-01  1.718e-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.545e+00  2.267e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.25
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/206104/cmap_HighResolution_312163201_312422401_4FGL_J2209.8-5028_daily_bin281.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.55e-03', job_status='DONE', photon_flux_upper_limit='8.49e-08', time_completed='2021-09-28 06:25:12.225893', job_id='206104', GAL2='0.66', fit_tolerance='1e-08', EG2='1.55', EG='1.54', time_epoch_completed='1632835512.23', return_code2='0', ts='0.25', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='1.19e-02', ts2='0.27', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='281' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:25:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 206104: <4FGL_J2209.8-5028_daily_bin281> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin281> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 06:10:53 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:10:55 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:10:55 2021
Terminated at Tue Sep 28 06:25:12 2021
Results reported at Tue Sep 28 06:25:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin281 332.474 -50.4702 312163201 312422401 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 :                                   728.17 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            859 sec.

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

