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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1656
RA = 332.474, Dec = -50.4702
tmin = 668563201, tmax = 668822401
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='383137', job_status='RUN', time_executed='2022-03-13 00:43:46.218695', time_epoch_executed='1647161026.22' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1656'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/383137

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/383137/ft1_4FGL_J2209.8-5028_daily_bin1656.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/383137/ft2_4FGL_J2209.8-5028_daily_bin1656.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/383137/ft1_4FGL_J2209.8-5028_daily_bin1656.fits outfile=/scratch/kocevski/383137/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1656.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=668563201.0 tmax=668822401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.38
user 5.12
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/383137/ft2_4FGL_J2209.8-5028_daily_bin1656.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/383137/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1656.fits evtable="EVENTS" outfile="/scratch/kocevski/383137/ft1_filtered_4FGL_J2209.8-5028_daily_bin1656.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
Number of photons that survived the gtmktime cut: 544

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/383137/ft1_filtered_4FGL_J2209.8-5028_daily_bin1656.fits" evtable="EVENTS" scfile=/scratch/kocevski/383137/ft2_4FGL_J2209.8-5028_daily_bin1656.fits sctable="SC_DATA" outfile=/scratch/kocevski/383137/ltcube_668563201_668822401_4FGL_J2209.8-5028_daily_bin1656.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/383137/ft2_4FGL_J2209.8-5028_daily_bin1656.fits
.....................!
real 15.46
user 15.03
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/383137/ft1_filtered_4FGL_J2209.8-5028_daily_bin1656.fits evtable="EVENTS" scfile=/scratch/kocevski/383137/ft2_4FGL_J2209.8-5028_daily_bin1656.fits sctable="SC_DATA" expcube=/scratch/kocevski/383137/ltcube_668563201_668822401_4FGL_J2209.8-5028_daily_bin1656.fits outfile=/scratch/kocevski/383137/expmap_668563201_668822401_4FGL_J2209.8-5028_daily_bin1656.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/383137/ltcube_668563201_668822401_4FGL_J2209.8-5028_daily_bin1656.fits
.....................!
real 193.57
user 187.79
sys 4.66

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/383137/ft1_filtered_4FGL_J2209.8-5028_daily_bin1656.fits scfile=/scratch/kocevski/383137/ft2_4FGL_J2209.8-5028_daily_bin1656.fits outfile=/scratch/kocevski/383137/cmap_668563201_668822401_4FGL_J2209.8-5028_daily_bin1656.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.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/383137/ft1_filtered_4FGL_J2209.8-5028_daily_bin1656.fits scfile=/scratch/kocevski/383137/ft2_4FGL_J2209.8-5028_daily_bin1656.fits outfile=/scratch/kocevski/383137/cmap_HighResolution_668563201_668822401_4FGL_J2209.8-5028_daily_bin1656.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.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/383137/ft1_filtered_4FGL_J2209.8-5028_daily_bin1656.fits evtable="EVENTS" scfile=/scratch/kocevski/383137/ft2_4FGL_J2209.8-5028_daily_bin1656.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/383137/Model_4FGL_J2209.8-5028_daily_bin1656.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/383137/ft1_filtered_4FGL_J2209.8-5028_daily_bin1656.fits.....................!
real 48.31
user 46.80
sys 1.38

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.818       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.684       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.588       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12557E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11123E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.9978       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6987       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8276       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.8590       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.509       1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.675       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .22090E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16882E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.472       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.8501       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0670       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0790       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=   5847.928     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     3067 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.822        21.115        .55819E-06    .10917E-03
   2  Prefactor     21.705        30.322       -.60064E-06   -.58869E-04
   3  Prefactor     12.590        13.671        .79910E-06   -.65409E-06
   4  Prefactor     .10001E-03    175.31        .96087E-05** at limit **
   5  Prefactor     .10000E-03    14.233        .41606E-08** at limit **
   6  Prefactor     .10001E-03    28.468       -.23686E-04** at limit **
   7  norm          5.9979        4.9040        .28559E-06   -.59615E-03
   8  Prefactor     .10000E-03    8.5729       -.21695E-06** at limit **
   9  Prefactor     1.6940        291.25       -.56721E-05   -.59733E-05
  10  Prefactor     .10000E-03    3.1372        .27024E-06** at limit **
  11  Prefactor     3.8280        3.8129       -.33641E-06   -.41583E-04
  12  Prefactor     .10000E-03    26.595       -.13440E-05** at limit **
  13  norm          5.8593        5.7198        .41513E-06    .31831E-03
  14  Prefactor     10.508        5.5527       -.20775E-06   -.76025E-03
  15  Prefactor     30.677        34.682        .54854E-07   -.31945E-04
  16  Prefactor     .10003E-03    9.4669        .97302E-05** at limit **
  17  Prefactor     .10002E-03    151.28       -.34632E-05** at limit **
  18  Prefactor     24.493        14.498       -.22018E-05    .87798E-04
  19  Prefactor     .10000E-03    37.774       -.22821E-05** at limit **
  20  Prefactor     2.8516        9.2411       -.10787E-05   -.29352E-04
  21  Prefactor     .10000E-03    26.247       -.24047E-05** at limit **
  22  Prefactor     .10000E-03    5.5670        .64043E-07** at limit **
  23  norm          .10000E-03    3.0867        .43631E-08** at limit **
  24  Normalizat    1.0670        .22196       -.58622E-06   -.28135E-03
  25  Prefactor     1.0791        .16380       -.29528E-06   -.58025E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.8221
  Prefactor  = 21.7049
  Prefactor  = 12.5896
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 5.99795
  Prefactor  = 0.0001
  Prefactor  = 1.69398
  Prefactor  = 0.0001
  Prefactor  = 3.82797
  Prefactor  = 0.000100001
  norm       = 5.8593
  Prefactor  = 10.5081
  Prefactor  = 30.6769
  Prefactor  = 0.000100035
  Prefactor  = 0.000100022
  Prefactor  = 24.4932
  Prefactor  = 0.000100003
  Prefactor  = 2.85156
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.06697
  Prefactor  = 1.07908
 **********
 **   18 **HESSE 
 **********

 FCN=   5847.928     FROM HESSE     STATUS=OK           423 CALLS     3490 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.822        21.127        .97662E-04   -1.4887    
   2  Prefactor     21.705        30.312        .86015E-04   -1.4776    
   3  Prefactor     12.590        13.536        .11290E-03   -1.4998    
   4  Prefactor     .10001E-03    179.08        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    30.136        .23826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.9979        4.8910        .14719E-03   -1.5218    
   8  Prefactor     .10000E-03    8.6004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.6940        292.84        .32279E-03   -1.5448    
  10  Prefactor     .10000E-03    3.1458        .13222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.8280        3.8060        .14257E-03   -1.5317    
  12  Prefactor     .10000E-03    26.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.8593        5.7293        .16591E-03   -1.5224    
  14  Prefactor     10.508        5.5729        .12360E-03   -1.5060    
  15  Prefactor     30.677        34.673        .72342E-04   -1.4600    
  16  Prefactor     .10003E-03    45.425        .36001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10002E-03    153.04        .40750E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.493        14.626        .80974E-04   -1.4718    
  19  Prefactor     .10000E-03    37.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.8516        9.2324        .24083E-03   -1.5370    
  21  Prefactor     .10000E-03    26.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.5742        .17622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.0882        .13122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0670        .25532        .28071E-03   -.90819    
  25  Prefactor     1.0791        .19141        .22180E-03   -.90138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20569e-09
Minuit parameter uncertainties:
  1  21.1365
  2  30.333
  3  13.5388
  4  0.00289367
  5  3.67488e-05
  6  0.00086856
  7  4.89137
  8  3.38877e-05
  9  44.7681
  10  3.38569e-05
  11  3.80625
  12  0.000337101
  13  5.72979
  14  5.57322
  15  34.6959
  16  0.00250651
  17  0.00363747
  18  14.6283
  19  0.000664614
  20  9.23703
  21  0.000582222
  22  1.65006e-05
  23  1.15143e-06
  24  0.255614
  25  0.191537
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  3.371e-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.079e+00  1.915e-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.067e+00  2.556e-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: 5.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/383137/likelihoodResults_668563201_668822401_4FGL_J2209.8-5028_daily_bin1656.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) = 5847.92818384
delta logL = -0.000172669048879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5847.92801222
delta logL = -1.04777154775e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7083       1.0000          .0000       10.000    
     3 'Normalizat'    1.0670       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0791       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=   5847.928     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      280 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10416E-03    11.877        .18142E-01** at limit **
   2  Index         2.6132        8.5917        .50000        .16258E-04
   3  Normalizat    1.0670        .40127E-02    .28071E-03    .29727E-04
   4  Prefactor     1.0791        .32047E-02    .22180E-03    .16761E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104164
  Index      = 2.61316
  Normalizat = 1.06697
  Prefactor  = 1.07908
 **********
 **   18 **HESSE 
 **********

 FCN=   5847.928     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10416E-03    78.212        .33084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6132        5.4182        .50000       -.49766    
   3  Normalizat    1.0670        .10339E-01    .11228E-04   -.90819    
   4  Prefactor     1.0791        .82576E-02    .88722E-05   -.90138    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.7181e-09
Minuit parameter uncertainties:
  1  0.0361423
  2  256.986
  3  0.0103395
  4  0.0082576
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/383137': 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): 102
logL (Free Index) = 5847.92801195
delta logL = -7.7543882071e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.042e-04  3.614e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.613e+00  2.570e+02  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.079e+00  8.258e-03  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.067e+00  1.034e-02  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/383137/cmap_HighResolution_668563201_668822401_4FGL_J2209.8-5028_daily_bin1656.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.88e-03', job_status='DONE', photon_flux_upper_limit='5.03e-08', time_completed='2022-03-13 00:56:14.605813', job_id='383137', GAL2='1.08', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1647161774.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='-7.75e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1656' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Mar 13 00:56:14 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 383137: <4FGL_J2209.8-5028_daily_bin1656> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1656> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Mar 13 00:40:38 2022
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Mar 13 00:43:37 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Mar 13 00:43:37 2022
Terminated at Sun Mar 13 00:56:15 2022
Results reported at Sun Mar 13 00:56:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1656 332.474 -50.4702 668563201 668822401 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 :                                   749.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             350.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            937 sec.

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

