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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin242
RA = 332.474, Dec = -50.4702
tmin = 302054401, tmax = 302313601
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='206044', job_status='RUN', time_executed='2021-09-28 06:11:39.180654', time_epoch_executed='1632834699.18' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='242'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/206044

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/206044/ft1_4FGL_J2209.8-5028_daily_bin242.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/206044/ft2_4FGL_J2209.8-5028_daily_bin242.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/206044/ft1_4FGL_J2209.8-5028_daily_bin242.fits outfile=/scratch/kocevski/206044/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin242.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=302054401.0 tmax=302313601.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.90
user 3.37
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/206044/ft1_filtered_4FGL_J2209.8-5028_daily_bin242.fits" evtable="EVENTS" scfile=/scratch/kocevski/206044/ft2_4FGL_J2209.8-5028_daily_bin242.fits sctable="SC_DATA" outfile=/scratch/kocevski/206044/ltcube_302054401_302313601_4FGL_J2209.8-5028_daily_bin242.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/206044/ft2_4FGL_J2209.8-5028_daily_bin242.fits
.....................!
real 12.28
user 11.90
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/206044/ft1_filtered_4FGL_J2209.8-5028_daily_bin242.fits evtable="EVENTS" scfile=/scratch/kocevski/206044/ft2_4FGL_J2209.8-5028_daily_bin242.fits sctable="SC_DATA" expcube=/scratch/kocevski/206044/ltcube_302054401_302313601_4FGL_J2209.8-5028_daily_bin242.fits outfile=/scratch/kocevski/206044/expmap_302054401_302313601_4FGL_J2209.8-5028_daily_bin242.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/206044/ltcube_302054401_302313601_4FGL_J2209.8-5028_daily_bin242.fits
.....................!
real 190.84
user 185.15
sys 5.25

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/206044/ft1_filtered_4FGL_J2209.8-5028_daily_bin242.fits scfile=/scratch/kocevski/206044/ft2_4FGL_J2209.8-5028_daily_bin242.fits outfile=/scratch/kocevski/206044/cmap_302054401_302313601_4FGL_J2209.8-5028_daily_bin242.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/206044/ft1_filtered_4FGL_J2209.8-5028_daily_bin242.fits scfile=/scratch/kocevski/206044/ft2_4FGL_J2209.8-5028_daily_bin242.fits outfile=/scratch/kocevski/206044/cmap_HighResolution_302054401_302313601_4FGL_J2209.8-5028_daily_bin242.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/206044/ft1_filtered_4FGL_J2209.8-5028_daily_bin242.fits evtable="EVENTS" scfile=/scratch/kocevski/206044/ft2_4FGL_J2209.8-5028_daily_bin242.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/206044/Model_4FGL_J2209.8-5028_daily_bin242.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/206044/ft1_filtered_4FGL_J2209.8-5028_daily_bin242.fits.....................!
real 46.52
user 45.12
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10614E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11907E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.412       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.905       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.673       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8023       1.0000         .10000E-03   10000.    
     7 'norm      '    4.4798       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.639       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0453       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7639       1.0000         .10000E-03   10000.    
    12 'Prefactor '    40.724       1.0000         .10000E-03   10000.    
    13 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3544       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12090E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.122       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.8638       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12588E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.7756       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .17591E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2402       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90650       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=   5971.945     FROM MIGRAD    STATUS=CONVERGED    102 CALLS     2418 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.9769        .31902E-05** at limit **
   2  Prefactor     .10000E-03    10.370       -.39003E-05** at limit **
   3  Prefactor     16.410        1.7762       -.37203E-05   -.42531E-02
   4  Prefactor     18.942        5.9046        .56700E-05    .62681E-02
   5  Prefactor     12.625        7.8095       -.97655E-05   -.65213E-02
   6  Prefactor     4.8038        3.5780       -.86137E-06   -.22373E-03
   7  norm          4.4764        4.2574       -.16126E-06    .52305E-04
   8  Prefactor     12.639        1.0749       -.42381E-06   -.11142E-03
   9  Prefactor     .10014E-03    24.755        .39822E-04** at limit **
  10  Prefactor     1.0432        2.0075        .80602E-05    .34026E-03
  11  Prefactor     3.7623        3.1847        .99101E-07   -.79022E-04
  12  Prefactor     40.659        30.300       -.41398E-04    .15401E-01
  13  norm          .10000E-03    2.3934        .19349E-07** at limit **
  14  Prefactor     4.3567        4.6211        .14326E-05    .54441E-03
  15  Prefactor     .10097E-03    26.739       -.65439E-04** at limit **
  16  Prefactor     .10000E-03    2.4617       -.12922E-06** at limit **
  17  Prefactor     14.062        20.512       -.41497E-04   -.58915E-02
  18  Prefactor     6.8702        3.9784        .13073E-04    .19507E-02
  19  Prefactor     .10407E-03    24.643        .22625E-04** at limit **
  20  Prefactor     7.7784        3.0475       -.10551E-04   -.71672E-02
  21  Prefactor     .10066E-03    31.167        .23507E-04** at limit **
  22  Prefactor     .10000E-03    5.9277        .79957E-05** at limit **
  23  norm          .10000E-03    5.9610       -.88219E-05** at limit **
  24  Normalizat    1.2403        .23616        .10688E-04   -.13450E-04
  25  Prefactor     .90632        .18107       -.33958E-05   -.59035E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 16.4104
  Prefactor  = 18.9415
  Prefactor  = 12.6251
  Prefactor  = 4.80384
  norm       = 4.47642
  Prefactor  = 12.639
  Prefactor  = 0.000100139
  Prefactor  = 1.04319
  Prefactor  = 3.76235
  Prefactor  = 40.6594
  norm       = 0.0001
  Prefactor  = 4.35668
  Prefactor  = 0.000100971
  Prefactor  = 0.0001
  Prefactor  = 14.0622
  Prefactor  = 6.87025
  Prefactor  = 0.00010407
  Prefactor  = 7.77844
  Prefactor  = 0.000100655
  Prefactor  = 0.000100002
  norm       = 0.000100002
  Normalizat = 1.2403
  Prefactor  = 0.906323
 **********
 **   18 **HESSE 
 **********

 FCN=   5971.945     FROM HESSE     STATUS=OK           475 CALLS     2893 TOTAL
                     EDM=   .69E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.9586        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.371        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.410        9.2307        .24716E-02   -1.4898    
   4  Prefactor     18.942        19.185        .23029E-02   -1.4837    
   5  Prefactor     12.625        18.931        .28130E-02   -1.4997    
   6  Prefactor     4.8038        3.5906        .45896E-02   -1.5270    
   7  norm          4.4764        4.3034        .47558E-02   -1.5285    
   8  Prefactor     12.639        12.225        .28168E-02   -1.4997    
   9  Prefactor     .10014E-03    26.008        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.0432        16.034        .12175E-01   -1.5504    
  11  Prefactor     3.7623        3.1941        .52024E-02   -1.5320    
  12  Prefactor     40.659        105.20        .15703E-02   -1.4432    
  13  norm          .10000E-03    2.3927        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.3567        4.6551        .48257E-02   -1.5290    
  15  Prefactor     .10097E-03    30.254        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.4478        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.062        27.509        .26646E-02   -1.4958    
  18  Prefactor     6.8702        11.567        .38285E-02   -1.5184    
  19  Prefactor     .10407E-03    45.741        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.7784        9.1070        .35951E-02   -1.5150    
  21  Prefactor     .10066E-03    51.701        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.9725        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.9849        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2403        .20505        .58747E-01   -.85366    
  25  Prefactor     .90632        .15522        .45088E-01   -.95920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.89524e-06
Minuit parameter uncertainties:
  1  9.52465e-05
  2  0.000148863
  3  9.2315
  4  19.1913
  5  18.9402
  6  3.59073
  7  4.30374
  8  12.2274
  9  0.00380693
  10  8.18174
  11  3.1942
  12  105.682
  13  3.04455e-07
  14  4.65545
  15  0.010848
  16  5.96687e-07
  17  27.5333
  18  11.5704
  19  0.027311
  20  9.10858
  21  0.0116487
  22  0.000202934
  23  0.000216609
  24  0.205185
  25  0.155296
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  9.063e-01  1.553e-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.240e+00  2.052e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/206044/likelihoodResults_302054401_302313601_4FGL_J2209.8-5028_daily_bin242.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) = 5971.92268336
delta logL = 0.0219115116597

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5971.90991208
delta logL = 0.0346827841695

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.682       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1178       1.0000          .0000       10.000    
     3 'Normalizat'    1.2431       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90410       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=   5971.910     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      252 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.719        129.79        .51934E-04   -.32608E-03
   2  Index         2.1169        .92065        .97801E-02   -.38832E-03
   3  Normalizat    1.2431        .22809        .25954E-03    .83527E-03
   4  Prefactor     .90405        .17920        .23355E-03    .10841E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.7191
  Index      = 2.11694
  Normalizat = 1.24315
  Prefactor  = 0.904045
 **********
 **   18 **HESSE 
 **********

 FCN=   5971.910     FROM HESSE     STATUS=OK            23 CALLS      275 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.719        125.72        .10387E-04   -1.4161    
   2  Index         2.1169        .89229        .39120E-03   -.61458    
   3  Normalizat    1.2431        .22823        .51909E-04   -.85280    
   4  Prefactor     .90405        .17930        .46710E-04   -.96000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.63899e-09
Minuit parameter uncertainties:
  1  126.289
  2  0.899544
  3  0.228417
  4  0.179418
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/206044': 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) = 5971.90991161
delta logL = 0.0346832592277

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  9.040e-01  1.794e-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.243e+00  2.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.26
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/206044/cmap_HighResolution_302054401_302313601_4FGL_J2209.8-5028_daily_bin242.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.02e-03', job_status='DONE', photon_flux_upper_limit='9.10e-08', time_completed='2021-09-28 06:22:55.833359', job_id='206044', GAL2='0.90', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1632835375.83', return_code2='0', ts='0.26', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='3.47e-02', ts2='0.33', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='242' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:22:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 206044: <4FGL_J2209.8-5028_daily_bin242> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin242> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 06:10:47 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:10:50 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:50 2021
Terminated at Tue Sep 28 06:23:03 2021
Results reported at Tue Sep 28 06:23:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin242 332.474 -50.4702 302054401 302313601 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 :                                   668.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            736 sec.

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

